mark end-of-stream as session-ending event

This commit is contained in:
Georg Lukas 2019-03-26 15:16:52 +01:00
parent 6b1b58a339
commit 704161a285

View file

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