Commit 607e20eb authored by Eddi Linder's avatar Eddi Linder

Update timeout for poll to be in milliseconds

parent 1f69bd35
......@@ -108,6 +108,8 @@ class poll(object):
try:
for fd in self.fds:
self.fds[fd].start(result.add_event, get_fileno(fd), pass_events=True)
if timeout is not None and -1 < timeout:
timeout /= 1000.0
result.event.wait(timeout=timeout)
return result.events
finally:
......
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