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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user