summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-06-08 10:24:25 -0700
committerLance Stout <lancestout@gmail.com>2011-06-08 10:24:25 -0700
commite219c0f9765e195770a7a0d2cdc7a1de7bb27f58 (patch)
tree3d396a8d5e068bfbbe194da80d167cd710171fd0 /sleekxmpp/xmlstream
parent4266ee0fa4b2520ed930047ea73d6ac82d9b1f83 (diff)
downloadslixmpp-e219c0f9765e195770a7a0d2cdc7a1de7bb27f58.tar.gz
slixmpp-e219c0f9765e195770a7a0d2cdc7a1de7bb27f58.tar.bz2
slixmpp-e219c0f9765e195770a7a0d2cdc7a1de7bb27f58.tar.xz
slixmpp-e219c0f9765e195770a7a0d2cdc7a1de7bb27f58.zip
Added session_end event and some docs.
For now, session_end is the same as disconnected, but once support is added later for stream management, the two events will become distinct. Plugins should add handlers for session_end for cleaning any session state.
Diffstat (limited to 'sleekxmpp/xmlstream')
-rw-r--r--sleekxmpp/xmlstream/xmlstream.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py
index fd313536..5bc71f04 100644
--- a/sleekxmpp/xmlstream/xmlstream.py
+++ b/sleekxmpp/xmlstream/xmlstream.py
@@ -389,6 +389,7 @@ class XMLStream(object):
self.event('socket_error', serr)
finally:
#clear your application state
+ self.event('session_end', direct=True)
self.event("disconnected", direct=True)
return True