Commits

jrosenberg  committed c27448f

Issue number: QUARTZ-490
Cleare the signaled flag right before we try to acquire a trigger, rather than before we wait to be unpaused/have an avail thread.

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

  • Participants
  • Parent commits 6890512

Comments (0)

Files changed (1)

File src/java/org/quartz/core/QuartzSchedulerThread.java

         boolean lastAcquireFailed = false;
         
         while (!halted) {
-            signaled = false;
-          
             try {
                 // check if we're supposed to pause...
                 synchronized (pauseLock) {
 
                     long now = System.currentTimeMillis();
 
+                    signaled = false;
                     try {
                         trigger = qsRsrcs.getJobStore().acquireNextTrigger(
                                 ctxt, now + idleWaitTime);