Commit 62c165b8 by fwkz

Fixing problem with ghost worker threads

parent dd210558
......@@ -23,7 +23,10 @@ class WorkerThread(threading.Thread):
def run(self):
while data_producing.is_set() or not data_queue.empty():
record = data_queue.get()
try:
record = data_queue.get(block=False)
except queue.Empty:
continue
target = record[0]
args = record[1:]
try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment