Mitigate ctrl-c somewhat

This commit is contained in:
2019-09-29 00:41:34 +01:00
parent f8cded3772
commit 0430b713a9

View File

@@ -59,7 +59,7 @@ def main():
try: try:
# block until all tasks are done # block until all tasks are done
while not q.empty(): while not q.empty():
time.sleep(1) # Interruptable time.sleep(5) # Interruptable
q.join() q.join()
# stop workers # stop workers
for _ in range(thread_count): for _ in range(thread_count):