summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-01-24 21:43:49 +0100
committermathieui <mathieui@mathieui.net>2021-01-29 15:33:44 +0100
commit571774edb424c4102a26262cfc709814c16ac41d (patch)
tree72f28e5e949c3126db0fef1f9442ee8d6fe7f63d
parent456dff0b61113e7a1e48eab010cd3f6649b073db (diff)
downloadslixmpp-571774edb424c4102a26262cfc709814c16ac41d.tar.gz
slixmpp-571774edb424c4102a26262cfc709814c16ac41d.tar.bz2
slixmpp-571774edb424c4102a26262cfc709814c16ac41d.tar.xz
slixmpp-571774edb424c4102a26262cfc709814c16ac41d.zip
xmlstream: end the parser when the stream has ended
-rw-r--r--slixmpp/xmlstream/xmlstream.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/slixmpp/xmlstream/xmlstream.py b/slixmpp/xmlstream/xmlstream.py
index 57922bbc..c9247cec 100644
--- a/slixmpp/xmlstream/xmlstream.py
+++ b/slixmpp/xmlstream/xmlstream.py
@@ -431,6 +431,7 @@ class XMLStream(asyncio.BaseProtocol):
log.debug("End of stream received")
self.disconnect_reason = "End of stream"
self.abort()
+ return
elif self.xml_depth == 1:
# A stanza is an XML element that is a direct child of
# the root element, hence the check of depth == 1