[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:
which.linden
2008-06-25 11:55:29 -07:00
parent c138b433d8
commit 4a6a3c257d

View File

@@ -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()