diff options
Diffstat (limited to 'sleekxmpp/xmlstream')
-rw-r--r-- | sleekxmpp/xmlstream/xmlstream.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py index 40218dd5..239eab8f 100644 --- a/sleekxmpp/xmlstream/xmlstream.py +++ b/sleekxmpp/xmlstream/xmlstream.py @@ -269,6 +269,7 @@ class XMLStream(object): and processing should be restarted. Defaults to False. """ + self.event("disconnected") self.state.set('reconnect', reconnect) if self.state['disconnecting']: return @@ -294,6 +295,8 @@ class XMLStream(object): """ Reset the stream's state and reconnect to the server. """ + logging.info("Reconnecting") + self.event("disconnected") self.state.set('tls', False) self.state.set('ssl', False) time.sleep(1) |