From: jprocter Date: Mon, 17 Jan 2011 15:11:46 +0000 (+0000) Subject: need to own lock to notify X-Git-Tag: Release_2_7~294 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=5408a7058422f1d268fcb18a9516789248912d95;p=jalview.git need to own lock to notify --- diff --git a/src/jalview/javascript/JSFunctionExec.java b/src/jalview/javascript/JSFunctionExec.java index 47e4538..6ab0865 100644 --- a/src/jalview/javascript/JSFunctionExec.java +++ b/src/jalview/javascript/JSFunctionExec.java @@ -29,7 +29,10 @@ public class JSFunctionExec implements Runnable Vector q = jsExecQueue; q.removeAllElements(); jsExecQueue = null; - executor.notify(); + synchronized (q) + { + q.notifyAll(); + } } executor = null; }