mirror of https://github.com/celery/kombu.git
epoll.poll timeout can't be None, use -1 for infinity
This commit is contained in:
parent
b7b625e0d8
commit
495fd9cba4
|
@ -25,7 +25,7 @@ class _epoll(object):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def poll(self, timeout):
|
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):
|
class _kqueue(object):
|
||||||
|
|
Loading…
Reference in New Issue