disconnect cleanly
This commit is contained in:
parent
7ad7a29a8f
commit
a41a4369c6
1 changed files with 1 additions and 1 deletions
|
@ -290,10 +290,10 @@ class XMLStream(object):
|
|||
self.send_raw(self.stream_footer)
|
||||
# Wait for confirmation that the stream was
|
||||
# closed in the other direction.
|
||||
time.sleep(1)
|
||||
if not reconnect:
|
||||
self.auto_reconnect = False
|
||||
self.stop.set()
|
||||
time.sleep(1)
|
||||
try:
|
||||
self.socket.close()
|
||||
self.filesocket.close()
|
||||
|
|
Loading…
Reference in a new issue