Commit d74676a5 authored by Denis Bilenko's avatar Denis Bilenko

Hub.join(): return False if Hub was already dead

parent f9305773
......@@ -332,7 +332,7 @@ class Hub(greenlet):
"""
assert getcurrent() is self.parent, "only possible from MAIN greenlet"
if self.dead:
return
return True
if timeout is not None:
timeout = self.loop.timer(timeout, ref=False)
......
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