diff options
author | Lance Stout <lancestout@gmail.com> | 2010-10-06 14:03:19 -0400 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2010-10-06 14:03:19 -0400 |
commit | e1866ab3287ef184bbbbb4b0a7da33b4c0f6791a (patch) | |
tree | 899e70fbffb46612fab0ed992c9dc726979dfe81 /sleekxmpp/xmlstream | |
parent | a7410f2146a912d7302e79b38c49a57a01faee72 (diff) | |
download | slixmpp-e1866ab3287ef184bbbbb4b0a7da33b4c0f6791a.tar.gz slixmpp-e1866ab3287ef184bbbbb4b0a7da33b4c0f6791a.tar.bz2 slixmpp-e1866ab3287ef184bbbbb4b0a7da33b4c0f6791a.tar.xz slixmpp-e1866ab3287ef184bbbbb4b0a7da33b4c0f6791a.zip |
Made first pass at cleaning up ClientXMPP.
Added self.stream_ns to BaseXMPP.
Moved connected/disconnected events and logging to XMLStream.
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) |