diff options
Diffstat (limited to 'sleekxmpp/xmlstream')
-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 |