Browse Source

timer2: Set self.running=False in stop() so it won't try to join again on subsequent calls.

Ask Solem 14 years ago
parent
commit
bb1d2586f4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      celery/utils/timer2.py

+ 1 - 0
celery/utils/timer2.py

@@ -167,6 +167,7 @@ class Timer(Thread):
             self._shutdown.set()
             self._stopped.wait()
             self.join(1e100)
+            self.running = False
 
     def enter(self, entry, eta, priority=None):
         if not self.running: