diff options
Diffstat (limited to 'libs/apscheduler/schedulers/blocking.py')
-rw-r--r-- | libs/apscheduler/schedulers/blocking.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/apscheduler/schedulers/blocking.py b/libs/apscheduler/schedulers/blocking.py index e61715757..4ecc9f6f1 100644 --- a/libs/apscheduler/schedulers/blocking.py +++ b/libs/apscheduler/schedulers/blocking.py @@ -14,7 +14,9 @@ class BlockingScheduler(BaseScheduler): _event = None def start(self, *args, **kwargs): - self._event = Event() + if self._event is None or self._event.is_set(): + self._event = Event() + super(BlockingScheduler, self).start(*args, **kwargs) self._main_loop() |