Commits

jhouse  committed 5fb4de7

QUARTZ-753 : race condition in quartz.SimpleThreadPool

git-svn-id: http://svn.opensymphony.com/svn/quartz/trunk@91969f7d36a-ea1c-0410-88ea-9fd03e4c9665

  • Participants
  • Parent commits 2417580

Comments (0)

Files changed (1)

File src/java/org/quartz/simpl/SimpleThreadPool.java

         private SimpleThreadPool tp;
 
         private Runnable runnable = null;
+        
+        private boolean runOnce = false;
 
         /**
          * <p>
             super(threadGroup, name);
             this.tp = tp;
             this.runnable = runnable;
+            runOnce = true;
             setPriority(prio);
             setDaemon(isDaemon);
         }
          */
         public void run() {
             boolean ran = false;
-        	boolean runOnce = false;
             boolean shouldRun = false;
             synchronized(this) {
-            	runOnce = (runnable != null);
             	shouldRun = run;
             }