Commit e92a7bb2 authored by Denis Bilenko's avatar Denis Bilenko

socket: start Timeouts with ref=False

parent 960dcb3f
......@@ -282,7 +282,7 @@ class socket(object):
"""
assert watcher.callback is None, 'This socket is already used by another greenlet: %r' % (watcher.callback, )
if self.timeout is not None:
timeout = Timeout.start_new(self.timeout, timeout_exc)
timeout = Timeout.start_new(self.timeout, timeout_exc, ref=False)
else:
timeout = None
try:
......
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