diff options
author | Georg Lukas <georg@op-co.de> | 2019-03-26 15:16:52 +0100 |
---|---|---|
committer | Georg Lukas <georg@op-co.de> | 2019-03-26 15:16:52 +0100 |
commit | 704161a285847c633fbe7edca56cfefc0f63c15e (patch) | |
tree | 4b81982b4803fe42a5162354552bd65e99f1ee89 | |
parent | 6b1b58a33944c141d6cd504d045205b95c0969f5 (diff) | |
download | slixmpp-704161a285847c633fbe7edca56cfefc0f63c15e.tar.gz slixmpp-704161a285847c633fbe7edca56cfefc0f63c15e.tar.bz2 slixmpp-704161a285847c633fbe7edca56cfefc0f63c15e.tar.xz slixmpp-704161a285847c633fbe7edca56cfefc0f63c15e.zip |
mark end-of-stream as session-ending event
-rw-r--r-- | slixmpp/xmlstream/xmlstream.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/slixmpp/xmlstream/xmlstream.py b/slixmpp/xmlstream/xmlstream.py index ce7e29d9..17d23ff2 100644 --- a/slixmpp/xmlstream/xmlstream.py +++ b/slixmpp/xmlstream/xmlstream.py @@ -406,6 +406,7 @@ class XMLStream(asyncio.BaseProtocol): if self.xml_depth == 0: # The stream's root element has closed, # terminating the stream. + self.end_session_on_disconnect = True log.debug("End of stream received") self.disconnect_reason = "End of stream" self.abort() |