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.
This commit is contained in:
Lance Stout 2011-08-13 08:58:07 -07:00
parent 331db30f8f
commit 9fdd85d9f1

View file

@ -461,6 +461,7 @@ class XMLStream(object):
# Wait for confirmation that the stream was # Wait for confirmation that the stream was
# closed in the other direction. # closed in the other direction.
self.auto_reconnect = reconnect self.auto_reconnect = reconnect
log.debug('Waiting for %s from server' % self.stream_footer)
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()