From 9fdd85d9f18001ed8f90d6e1142bb9c03255a59c Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Sat, 13 Aug 2011 08:58:07 -0700 Subject: [PATCH] I've seen people complain about Sleek taking so long to disconnect. Added logging to say that we're waiting for the server to end the stream from its end. --- sleekxmpp/xmlstream/xmlstream.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py index 8214e13..8126d98 100644 --- a/sleekxmpp/xmlstream/xmlstream.py +++ b/sleekxmpp/xmlstream/xmlstream.py @@ -461,6 +461,7 @@ class XMLStream(object): # Wait for confirmation that the stream was # closed in the other direction. self.auto_reconnect = reconnect + log.debug('Waiting for %s from server' % self.stream_footer) self.stream_end_event.wait(4) if not self.auto_reconnect: self.stop.set()