mark end-of-stream as session-ending event
This commit is contained in:
parent
6b1b58a339
commit
704161a285
@ -406,6 +406,7 @@ class XMLStream(asyncio.BaseProtocol):
|
|||||||
if self.xml_depth == 0:
|
if self.xml_depth == 0:
|
||||||
# The stream's root element has closed,
|
# The stream's root element has closed,
|
||||||
# terminating the stream.
|
# terminating the stream.
|
||||||
|
self.end_session_on_disconnect = True
|
||||||
log.debug("End of stream received")
|
log.debug("End of stream received")
|
||||||
self.disconnect_reason = "End of stream"
|
self.disconnect_reason = "End of stream"
|
||||||
self.abort()
|
self.abort()
|
||||||
|
Loading…
Reference in New Issue
Block a user