mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-01 05:13:58 +00:00
Fix bug when stoping the thread pool, introduced by the prev rev.
This commit is contained in:
@@ -91,8 +91,12 @@ class ThreadPool(QtCore.QObject):
|
||||
def stop(self):
|
||||
for thread in self.threads:
|
||||
thread.stop()
|
||||
for queue in self.queues:
|
||||
queue.unlock()
|
||||
|
||||
# FIXME: if a queue is in more than 1 thread, unlock will be called
|
||||
# more than once.
|
||||
for thread in self.threads:
|
||||
for queue in thread.queues:
|
||||
queue.unlock()
|
||||
#for thread in self.threads:
|
||||
# self.log.debug("Waiting for %r", thread)
|
||||
# thread.wait()
|
||||
|
||||
Reference in New Issue
Block a user