mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-27 19:19:54 +00:00
Fix self.disconnect(reconnect=True) not working.
This commit is contained in:
parent
45ccb31356
commit
6244857746
1 changed files with 1 additions and 2 deletions
|
@ -353,8 +353,7 @@ class XMLStream(object):
|
||||||
self.send_raw(self.stream_footer)
|
self.send_raw(self.stream_footer)
|
||||||
# Wait for confirmation that the stream was
|
# Wait for confirmation that the stream was
|
||||||
# closed in the other direction.
|
# closed in the other direction.
|
||||||
if not reconnect:
|
self.auto_reconnect = reconnect
|
||||||
self.auto_reconnect = False
|
|
||||||
self.stream_end_event.wait(4)
|
self.stream_end_event.wait(4)
|
||||||
if not self.auto_reconnect:
|
if not self.auto_reconnect:
|
||||||
self.stop.set()
|
self.stop.set()
|
||||||
|
|
Loading…
Reference in a new issue