summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-03-18 15:47:21 -0400
committerLance Stout <lancestout@gmail.com>2011-03-18 15:47:21 -0400
commit6244857746cff020e02702de93270d8add64d48e (patch)
treebf65f4fe524f6d11862cc4fde2832c7a819f1cd8
parent45ccb313560fbfbc0354ebac9116ecb9ff963a47 (diff)
downloadslixmpp-6244857746cff020e02702de93270d8add64d48e.tar.gz
slixmpp-6244857746cff020e02702de93270d8add64d48e.tar.bz2
slixmpp-6244857746cff020e02702de93270d8add64d48e.tar.xz
slixmpp-6244857746cff020e02702de93270d8add64d48e.zip
Fix self.disconnect(reconnect=True) not working.
-rw-r--r--sleekxmpp/xmlstream/xmlstream.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py
index 18d891a3..1c165562 100644
--- a/sleekxmpp/xmlstream/xmlstream.py
+++ b/sleekxmpp/xmlstream/xmlstream.py
@@ -353,8 +353,7 @@ class XMLStream(object):
self.send_raw(self.stream_footer)
# Wait for confirmation that the stream was
# closed in the other direction.
- if not reconnect:
- self.auto_reconnect = False
+ self.auto_reconnect = reconnect
self.stream_end_event.wait(4)
if not self.auto_reconnect:
self.stop.set()