From 85e6caaea19ed81ea744f8e82fc877678271977c Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Mon, 10 Nov 2014 21:59:02 +0100 Subject: [PATCH] IDEA-130959 (method and system for interrupting binary decompilers) --- .../java/decompiler/main/rels/ClassWrapper.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/org/jetbrains/java/decompiler/main/rels/ClassWrapper.java b/src/org/jetbrains/java/decompiler/main/rels/ClassWrapper.java index 8f2958f..fcc1a5d 100644 --- a/src/org/jetbrains/java/decompiler/main/rels/ClassWrapper.java +++ b/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) {