From e219c0f9765e195770a7a0d2cdc7a1de7bb27f58 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Wed, 8 Jun 2011 10:24:25 -0700 Subject: 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. --- sleekxmpp/xmlstream/xmlstream.py | 1 + 1 file changed, 1 insertion(+) (limited to 'sleekxmpp/xmlstream') 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 -- cgit v1.2.3