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

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

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

Loading…
Cancel
Save