Commit d09b0c7c authored by Denis Bilenko's avatar Denis Bilenko

queue.py: use Event.set instead of Event.put

parent 87e743e5
......@@ -272,7 +272,7 @@ class JoinableQueue(Queue):
raise ValueError('task_done() called too many times')
self._unfinished_tasks -= 1
if self._unfinished_tasks == 0:
self._cond.put()
self._cond.set()
def join(self):
self._cond.get()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment