diff options
author | Lance Stout <lancestout@gmail.com> | 2011-11-14 11:21:05 -0800 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2011-11-14 11:21:05 -0800 |
commit | 0c86f8288dceb67506f79a6522b0b8a6f8ffe214 (patch) | |
tree | ecf91e11e4749e05b9aff6883393d2e7c5532ad1 /sleekxmpp/xmlstream/xmlstream.py | |
parent | 5a6a65fd9fc27789376aec9390f6283c866f99e9 (diff) | |
download | slixmpp-0c86f8288dceb67506f79a6522b0b8a6f8ffe214.tar.gz slixmpp-0c86f8288dceb67506f79a6522b0b8a6f8ffe214.tar.bz2 slixmpp-0c86f8288dceb67506f79a6522b0b8a6f8ffe214.tar.xz slixmpp-0c86f8288dceb67506f79a6522b0b8a6f8ffe214.zip |
No need to continue processing loop if an error ocurred and auto_reconnect=False.
Diffstat (limited to 'sleekxmpp/xmlstream/xmlstream.py')
-rw-r--r-- | sleekxmpp/xmlstream/xmlstream.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py index aa7fd061..b6d013b0 100644 --- a/sleekxmpp/xmlstream/xmlstream.py +++ b/sleekxmpp/xmlstream/xmlstream.py @@ -1111,11 +1111,8 @@ class XMLStream(object): if not self.stop.is_set(): log.exception('Connection error.') - if not self.stop.is_set(): - if self.auto_reconnect: - self.reconnect() - else: - continue + if not self.stop.is_set() and self.auto_reconnect: + self.reconnect() else: self.disconnect() break |