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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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])