diff options
author | Nathan Fritz <nathan@andyet.net> | 2010-10-20 19:18:27 -0700 |
---|---|---|
committer | Nathan Fritz <nathan@andyet.net> | 2010-10-20 19:18:27 -0700 |
commit | 77eab6544f1f44f2450ecca4e7588dd60e484631 (patch) | |
tree | 1577381a1e45d75fe43ef16383f902395d1080f8 /sleekxmpp/xmlstream/scheduler.py | |
parent | 11264fe0a8d1224b9a185fc0439359477ef9c3cc (diff) | |
download | slixmpp-77eab6544f1f44f2450ecca4e7588dd60e484631.tar.gz slixmpp-77eab6544f1f44f2450ecca4e7588dd60e484631.tar.bz2 slixmpp-77eab6544f1f44f2450ecca4e7588dd60e484631.tar.xz slixmpp-77eab6544f1f44f2450ecca4e7588dd60e484631.zip |
reconnect if session isn't established within 15 seconds
Diffstat (limited to 'sleekxmpp/xmlstream/scheduler.py')
-rw-r--r-- | sleekxmpp/xmlstream/scheduler.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sleekxmpp/xmlstream/scheduler.py b/sleekxmpp/xmlstream/scheduler.py index b932b0a7..b1b81439 100644 --- a/sleekxmpp/xmlstream/scheduler.py +++ b/sleekxmpp/xmlstream/scheduler.py @@ -137,7 +137,7 @@ class Scheduler(object): """Process scheduled tasks.""" self.run = True try: - while self.run: + while self.run and (self.parentstop is None or not self.parentstop.isSet()): wait = 1 updated = False if self.schedule: @@ -168,6 +168,7 @@ class Scheduler(object): except KeyboardInterrupt: self.run = False if self.parentstop is not None: + logging.debug("stopping parent") self.parentstop.set() except SystemExit: self.run = False |