need to own lock to notify
authorjprocter <Jim Procter>
Mon, 17 Jan 2011 15:11:46 +0000 (15:11 +0000)
committerjprocter <Jim Procter>
Mon, 17 Jan 2011 15:11:46 +0000 (15:11 +0000)
src/jalview/javascript/JSFunctionExec.java

index 47e4538..6ab0865 100644 (file)
@@ -29,7 +29,10 @@ public class JSFunctionExec implements Runnable
         Vector q = jsExecQueue;
         q.removeAllElements();
         jsExecQueue = null;
-        executor.notify();
+        synchronized (q)
+        {
+          q.notifyAll();
+        }
       }
       executor = null;
     }