From a41a4369c6238f0d479d4190e79df6332c5b98fe Mon Sep 17 00:00:00 2001 From: Nathan Fritz Date: Wed, 13 Oct 2010 18:21:05 -0700 Subject: disconnect cleanly --- sleekxmpp/xmlstream/xmlstream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit v1.2.3