From 3f739e513be8fdb3b00f78665650c6bf3c3f9911 Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 28 Jan 2021 18:21:10 +0100 Subject: xmlstream: keep value of "end_session_on_disconnect" That value should be set statically. Worst case is we fail to resume the session. --- slixmpp/xmlstream/xmlstream.py | 1 - 1 file changed, 1 deletion(-) diff --git a/slixmpp/xmlstream/xmlstream.py b/slixmpp/xmlstream/xmlstream.py index 37cadc1f..5074aa8c 100644 --- a/slixmpp/xmlstream/xmlstream.py +++ b/slixmpp/xmlstream/xmlstream.py @@ -433,7 +433,6 @@ 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