Skip to content

Commit

Permalink
epoll.poll timeout can't be None, use -1 for infinity
Browse files Browse the repository at this point in the history
  • Loading branch information
ask committed Jan 28, 2011
1 parent b7b625e commit 495fd9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kombu/utils/eventio.py
Expand Up @@ -25,7 +25,7 @@ def unregister(self, fd):
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):
Expand Down

0 comments on commit 495fd9c

Please sign in to comment.