summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream/xmlstream.py
diff options
context:
space:
mode:
Diffstat (limited to 'sleekxmpp/xmlstream/xmlstream.py')
-rw-r--r--sleekxmpp/xmlstream/xmlstream.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py
index 10f4a05f..39360310 100644
--- a/sleekxmpp/xmlstream/xmlstream.py
+++ b/sleekxmpp/xmlstream/xmlstream.py
@@ -1148,6 +1148,7 @@ class XMLStream(object):
root.clear()
except SyntaxError:
log.error("Error reading from XML stream.")
+ self.disconnect(self.auto_reconnect)
log.debug("Ending read XML loop")
def _build_stanza(self, xml, default_ns=None):