Remove task_done since we never call queue.join.
This commit is contained in:
parent
039ac45e17
commit
6d9300aa9d
1 changed files with 0 additions and 2 deletions
|
@ -338,11 +338,9 @@ class ThreadPool:
|
|||
while self._jobs_available.is_set() or not self._result_queue.empty():
|
||||
job = self._result_queue.get()
|
||||
if job is NO_MORE_JOBS:
|
||||
self._result_queue.task_done()
|
||||
break
|
||||
job.join()
|
||||
yield job
|
||||
self._result_queue.task_done()
|
||||
self._result_queue = None
|
||||
|
||||
if was_paused:
|
||||
|
|
Loading…
Reference in a new issue