summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Fritz <fritzy@netflint.net>2011-09-19 11:53:09 -0700
committerNathan Fritz <fritzy@netflint.net>2011-09-19 11:53:09 -0700
commitcf7fcf496e0d00ea9dc9d9de52562630d2072f55 (patch)
tree6edec9f7c21261ec8dfa02e0b3cebfb82f3367e1
parent1765271f84793efb54eb710557afc1ae2f201926 (diff)
downloadslixmpp-cf7fcf496e0d00ea9dc9d9de52562630d2072f55.tar.gz
slixmpp-cf7fcf496e0d00ea9dc9d9de52562630d2072f55.tar.bz2
slixmpp-cf7fcf496e0d00ea9dc9d9de52562630d2072f55.tar.xz
slixmpp-cf7fcf496e0d00ea9dc9d9de52562630d2072f55.zip
SyntaxError requires a restart
-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):