From 704161a285847c633fbe7edca56cfefc0f63c15e Mon Sep 17 00:00:00 2001 From: Georg Lukas Date: Tue, 26 Mar 2019 15:16:52 +0100 Subject: mark end-of-stream as session-ending event --- slixmpp/xmlstream/xmlstream.py | 1 + 1 file changed, 1 insertion(+) 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() -- cgit v1.2.3