Commit 7665c743 authored by Denis Bilenko's avatar Denis Bilenko

gevent.[i]wait(): handle objects without rawlink

parent f3e1eb97
......@@ -613,7 +613,12 @@ def iwait(objects, timeout=None):
if timeout is not None:
timer.stop()
for obj in objects:
obj.unlink(switch)
unlink = getattr(obj, 'unlink', None)
if unlink:
try:
unlink(switch)
except:
traceback.print_exc()
def wait(objects=None, timeout=None, count=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