Fix self.disconnect(reconnect=True) not working.

This commit is contained in:
Lance Stout 2011-03-18 15:47:21 -04:00
parent 45ccb31356
commit 6244857746

View file

@ -353,8 +353,7 @@ class XMLStream(object):
self.send_raw(self.stream_footer) self.send_raw(self.stream_footer)
# Wait for confirmation that the stream was # Wait for confirmation that the stream was
# closed in the other direction. # closed in the other direction.
if not reconnect: self.auto_reconnect = reconnect
self.auto_reconnect = False
self.stream_end_event.wait(4) self.stream_end_event.wait(4)
if not self.auto_reconnect: if not self.auto_reconnect:
self.stop.set() self.stop.set()