Browse files

scheduler no longer waits for the next event before exiting

  • Loading branch information...
1 parent b8f40eb commit 45991e47eeab97f0411139c5b1627ac6350de3d0 @fritzy committed Nov 16, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 sleekxmpp/xmlstream/scheduler.py
View
2 sleekxmpp/xmlstream/scheduler.py
@@ -149,6 +149,8 @@ def _process(self):
if wait <= 0.0:
newtask = self.addq.get(False)
else:
+ if wait >= 3.0:
+ wait = 3.0
newtask = self.addq.get(True, wait)
except queue.Empty:
cleanup = []

0 comments on commit 45991e4

Please sign in to comment.