Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

timeout is now seconds and float

  • Loading branch information...
commit 27302b4f643cd3967289ff11d811309a0b05f630 1 parent 4be382a
@oberstet authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 txkqreactor/kqreactor.py
View
4 txkqreactor/kqreactor.py
@@ -127,9 +127,7 @@ def getWriters(self):
def doKEvent(self, timeout):
"""Poll the kqueue for new events."""
if timeout is None:
- timeout = 1000
- else:
- timeout = int(timeout * 1000) # convert seconds to milliseconds
+ timeout = 0.001 # 1ms
try:
l = self._kq.control([], len(self._selectables), timeout)
Please sign in to comment.
Something went wrong with that request. Please try again.