summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-01-28 18:21:10 +0100
committermathieui <mathieui@mathieui.net>2021-01-29 15:33:44 +0100
commit3f739e513be8fdb3b00f78665650c6bf3c3f9911 (patch)
tree2bd9284eb65c6fb1e9384c06c441031bdaa9589f
parentfc7d7b4eb751daa030169a0b48a411e51325f01d (diff)
downloadslixmpp-3f739e513be8fdb3b00f78665650c6bf3c3f9911.tar.gz
slixmpp-3f739e513be8fdb3b00f78665650c6bf3c3f9911.tar.bz2
slixmpp-3f739e513be8fdb3b00f78665650c6bf3c3f9911.tar.xz
slixmpp-3f739e513be8fdb3b00f78665650c6bf3c3f9911.zip
xmlstream: keep value of "end_session_on_disconnect"
That value should be set statically. Worst case is we fail to resume the session.
-rw-r--r--slixmpp/xmlstream/xmlstream.py1
1 files changed, 0 insertions, 1 deletions
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()