Commit a755c446 authored by Adieu's avatar Adieu Committed by adieu

count is not working when raise_error is False

Should pass count param to `wait` function when `raise_error` is False.

I have spent several days to debug a wired behavior of my program caused by this bug. Hope this could save other people some time in similar situation.
parent 9c7e8e0b
......@@ -410,7 +410,7 @@ def _kill(greenlet, exception, waiter):
def joinall(greenlets, timeout=None, raise_error=False, count=None):
if not raise_error:
wait(greenlets, timeout=timeout)
wait(greenlets, timeout=timeout, count=count)
else:
for obj in iwait(greenlets, timeout=timeout):
if getattr(obj, 'exception', None) is not None:
......
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