From 6244857746cff020e02702de93270d8add64d48e Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Fri, 18 Mar 2011 15:47:21 -0400 Subject: Fix self.disconnect(reconnect=True) not working. --- sleekxmpp/xmlstream/xmlstream.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sleekxmpp/xmlstream') 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() -- cgit v1.2.3