We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c809e6 commit 02447fcCopy full SHA for 02447fc
1 file changed
soot-infoflow/src/soot/jimple/infoflow/util/ReusableExecutor.java
@@ -35,11 +35,14 @@ public void execute(Runnable command) {
35
36
@Override
37
public void run() {
38
- command.run();
39
- int c = counter.decrementAndGet();
40
- if (c == 0) {
41
- synchronized (obj) {
42
- obj.notify();
+ try {
+ command.run();
+ } finally {
+ int c = counter.decrementAndGet();
+ if (c == 0) {
43
+ synchronized (obj) {
44
+ obj.notify();
45
+ }
46
}
47
48
0 commit comments