[svn r132] Timeout calls previously didn't work because the number of arguments passed in to schedule_call didn't match the signature of the _do_timout callback.
This commit is contained in:
@@ -145,7 +145,7 @@ def trampoline(fd, read=None, write=None, timeout=None):
|
||||
hub.remove_descriptor(fileno)
|
||||
greenlib.switch(self, fd)
|
||||
if timeout is not None:
|
||||
t = hub.schedule_call(timeout, _do_timeout)
|
||||
t = hub.schedule_call(timeout, _do_timeout, fileno)
|
||||
hub.add_descriptor(fileno, read and cb, write and cb, _do_close)
|
||||
return hub.switch()
|
||||
|
||||
|
Reference in New Issue
Block a user