Explorar o código

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

Ask Solem %!s(int64=14) %!d(string=hai) anos
pai
achega
71dfa2970f
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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: