Ends threads before quitting application
This fixes this warning: QThread: Destroyed while thread is still running
This commit is contained in:
parent
41e419c1e7
commit
7139eea4c4
1 changed files with 1 additions and 1 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue