mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-27 19:19:54 +00:00
No need to continue processing loop if an error ocurred and auto_reconnect=False.
This commit is contained in:
parent
5a6a65fd9f
commit
0c86f8288d
1 changed files with 2 additions and 5 deletions
|
@ -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:
|
||||
if not self.stop.is_set() and self.auto_reconnect:
|
||||
self.reconnect()
|
||||
else:
|
||||
continue
|
||||
else:
|
||||
self.disconnect()
|
||||
break
|
||||
|
|
Loading…
Reference in a new issue