Ends threads before quitting application

This fixes this warning:
QThread: Destroyed while thread is still running
This commit is contained in:
Theasacraft
2024-04-29 19:37:36 +02:00
committed by GitHub
parent 41e419c1e7
commit 7139eea4c4

View File

@@ -82,7 +82,7 @@ class Consumer(QThread):
self.active = True
while self.active:
try:
job = self.queue.get()
job = self.queue.get(timeout=0.2)
# print('Running job...')
# logging.info(*job[1])
job[0](*job[1])