From 9cea2a7627e0ded88b46847caa771934902853fa Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 6 Jun 2015 11:47:18 +0000 Subject: [PATCH] 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 --- src/collecty/daemon.py | 3 --- 1 file changed, 3 deletions(-) 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): -- 2.39.2