epoll.poll timeout can't be None, use -1 for infinity

This commit is contained in:
Ask Solem 2011-01-28 12:34:07 +01:00
parent b7b625e0d8
commit 495fd9cba4
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ class _epoll(object):
pass
def poll(self, timeout):
return self._epoll.poll(timeout and timeout / 1000.0)
return self._epoll.poll(timeout and timeout / 1000.0 or -1)
class _kqueue(object):