From: Michael Tremer Date: Sat, 6 Jun 2015 11:47:18 +0000 (+0000) Subject: daemon: Don't wait until the worker thread has finished after sending shutdown signal X-Git-Tag: 003~1 X-Git-Url: http://git.ipfire.org/?p=collecty.git;a=commitdiff_plain;h=9cea2a7627e0ded88b46847caa771934902853fa daemon: Don't wait until the worker thread has finished after sending shutdown signal There is no need to wait for each worker thread individually. Instead we send all worker threads the shutdown signal and wait after that until they all have finished. Signed-off-by: Michael Tremer --- diff --git a/src/collecty/daemon.py b/src/collecty/daemon.py index f5426fe..0891f8a 100644 --- a/src/collecty/daemon.py +++ b/src/collecty/daemon.py @@ -270,9 +270,6 @@ class WorkerThread(threading.Thread): def shutdown(self): self.running = False - # Wait until all data has been written. - self.join() - class WriteQueue(threading.Thread): def __init__(self, collecty, submit_interval):