mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-23 16:15:02 +00:00
Fix high CPU usage while idle (#5968)
This commit is contained in:
@@ -48,9 +48,7 @@ class Thread(QtCore.QThread):
|
||||
|
||||
def run(self):
|
||||
while not self.stopping:
|
||||
item = None
|
||||
if self.queue.qsize() > 0:
|
||||
item = self.queue.get()
|
||||
item = self.queue.get()
|
||||
if item is None:
|
||||
continue
|
||||
self.run_item(item)
|
||||
|
||||
Reference in New Issue
Block a user