PYTHON-1050 Rare RuntimeError during shutdown.
This commit is contained in:
parent
9b9ad1747d
commit
9e6b66c499
@ -79,8 +79,8 @@ class PeriodicExecutor(object):
|
||||
if self._thread is not None:
|
||||
try:
|
||||
self._thread.join(timeout)
|
||||
except ReferenceError:
|
||||
# Thread already terminated.
|
||||
except (ReferenceError, RuntimeError):
|
||||
# Thread already terminated, or not yet started.
|
||||
pass
|
||||
|
||||
def wake(self):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user