From 495fd9cba4664bb91d88951e722f20f8e7e0e572 Mon Sep 17 00:00:00 2001 From: Ask Solem Date: Fri, 28 Jan 2011 12:34:07 +0100 Subject: [PATCH] epoll.poll timeout can't be None, use -1 for infinity --- kombu/utils/eventio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kombu/utils/eventio.py b/kombu/utils/eventio.py index d1d6813c..baa5a318 100644 --- a/kombu/utils/eventio.py +++ b/kombu/utils/eventio.py @@ -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):