xmlstream: keep value of "end_session_on_disconnect"

That value should be set statically. Worst case is we fail to resume the
session.
This commit is contained in:
mathieui 2021-01-28 18:21:10 +01:00
parent fc7d7b4eb7
commit 3f739e513b

View file

@ -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()