Commit dec3a5df authored by Denis Bilenko's avatar Denis Bilenko

queue: fix issue #45. join() should not block on empty JoinableQueue(). Patch by Dmitry Chechik.

parent 3d8f801e
......@@ -277,6 +277,7 @@ class JoinableQueue(Queue):
Queue.__init__(self, maxsize)
self.unfinished_tasks = 0
self._cond = Event()
self._cond.set()
def _format(self):
result = Queue._format(self)
......
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