summaryrefslogtreecommitdiff
path: root/sleekxmpp
diff options
context:
space:
mode:
authorNathan Fritz <nathan@andyet.net>2010-10-13 18:21:05 -0700
committerNathan Fritz <nathan@andyet.net>2010-10-13 18:21:05 -0700
commita41a4369c6238f0d479d4190e79df6332c5b98fe (patch)
tree97dbd3abc7b94db8b33722cfa707032782a164c6 /sleekxmpp
parent7ad7a29a8f08ff815164731eec50ff1cba46b07a (diff)
downloadslixmpp-a41a4369c6238f0d479d4190e79df6332c5b98fe.tar.gz
slixmpp-a41a4369c6238f0d479d4190e79df6332c5b98fe.tar.bz2
slixmpp-a41a4369c6238f0d479d4190e79df6332c5b98fe.tar.xz
slixmpp-a41a4369c6238f0d479d4190e79df6332c5b98fe.zip
disconnect cleanly
Diffstat (limited to 'sleekxmpp')
-rw-r--r--sleekxmpp/xmlstream/xmlstream.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py
index 23aef6b7..666ab0a2 100644
--- a/sleekxmpp/xmlstream/xmlstream.py
+++ b/sleekxmpp/xmlstream/xmlstream.py
@@ -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()