IDEA-130959 (method and system for interrupting binary decompilers)

master
Roman Shevchenko 10 years ago
parent 3940565598
commit 85e6caaea1
  1. 8
      src/org/jetbrains/java/decompiler/main/rels/ClassWrapper.java

@ -95,8 +95,14 @@ public class ClassWrapper {
mtThread.start(); mtThread.start();
while (!mtProc.isFinished()) { while (!mtProc.isFinished()) {
try {
synchronized (mtProc.lock) { synchronized (mtProc.lock) {
mtProc.lock.wait(100); mtProc.lock.wait(200);
}
}
catch (InterruptedException e) {
killThread(mtThread);
throw e;
} }
if (System.currentTimeMillis() >= stopAt) { if (System.currentTimeMillis() >= stopAt) {

Loading…
Cancel
Save