diff options
author | Nathan Fritz <nathan@andyet.net> | 2010-11-16 17:58:20 -0800 |
---|---|---|
committer | Nathan Fritz <nathan@andyet.net> | 2010-11-16 17:58:20 -0800 |
commit | 45991e47eeab97f0411139c5b1627ac6350de3d0 (patch) | |
tree | 4491e8eeef90129b53b3a49abade19134e36b617 /sleekxmpp/xmlstream/scheduler.py | |
parent | b8f40eb8431dd0965d6ed3fd61956f4c91729202 (diff) | |
download | slixmpp-45991e47eeab97f0411139c5b1627ac6350de3d0.tar.gz slixmpp-45991e47eeab97f0411139c5b1627ac6350de3d0.tar.bz2 slixmpp-45991e47eeab97f0411139c5b1627ac6350de3d0.tar.xz slixmpp-45991e47eeab97f0411139c5b1627ac6350de3d0.zip |
scheduler no longer waits for the next event before exitingsleek-1.0-Beta41.0-Beta4
Diffstat (limited to 'sleekxmpp/xmlstream/scheduler.py')
-rw-r--r-- | sleekxmpp/xmlstream/scheduler.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sleekxmpp/xmlstream/scheduler.py b/sleekxmpp/xmlstream/scheduler.py index e0324cbe..14359102 100644 --- a/sleekxmpp/xmlstream/scheduler.py +++ b/sleekxmpp/xmlstream/scheduler.py @@ -149,6 +149,8 @@ class Scheduler(object): 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 = [] |