refinement startup

This commit is contained in:
holger krekel
2020-05-20 13:31:45 +02:00
parent 03fd311bfe
commit 3703a1c36c
2 changed files with 16 additions and 8 deletions

View File

@@ -37,10 +37,6 @@ class IOThreads:
def stop(self, wait=False):
self._thread_quitflag = True
# Workaround for a race condition. Make sure that thread is
# not in between checking for quitflag and entering idle.
time.sleep(0.5)
if wait:
for name, thread in self._name2thread.items():
if thread != threading.currentThread():