mirror of https://github.com/celery/kombu.git
eventio.epoll: Don't convert None to float
This commit is contained in:
parent
008624b788
commit
b7b625e0d8
|
@ -25,7 +25,7 @@ class _epoll(object):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def poll(self, timeout):
|
def poll(self, timeout):
|
||||||
return self._epoll.poll(timeout / 1000.0)
|
return self._epoll.poll(timeout and timeout / 1000.0)
|
||||||
|
|
||||||
|
|
||||||
class _kqueue(object):
|
class _kqueue(object):
|
||||||
|
|
Loading…
Reference in New Issue