mark end-of-stream as session-ending event
This commit is contained in:
parent
6b1b58a339
commit
704161a285
1 changed files with 1 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue