git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0320d10
)
need to own lock to notify
author
jprocter
<Jim Procter>
Mon, 17 Jan 2011 14:48:52 +0000
(14:48 +0000)
committer
jprocter
<Jim Procter>
Mon, 17 Jan 2011 14:48:52 +0000
(14:48 +0000)
src/jalview/javascript/JSFunctionExec.java
patch
|
blob
|
history
diff --git
a/src/jalview/javascript/JSFunctionExec.java
b/src/jalview/javascript/JSFunctionExec.java
index
9c6f578
..
47e4538
100644
(file)
--- a/
src/jalview/javascript/JSFunctionExec.java
+++ b/
src/jalview/javascript/JSFunctionExec.java
@@
-24,10
+24,13
@@
public class JSFunctionExec implements Runnable
{
if (jsExecQueue != null)
{
- Vector q = jsExecQueue;
- jsExecQueue = null;
- q.removeAllElements();
- executor.notify();
+ synchronized (jsExecQueue)
+ {
+ Vector q = jsExecQueue;
+ q.removeAllElements();
+ jsExecQueue = null;
+ executor.notify();
+ }
executor = null;
}
}