SyntaxError requires a restart

This commit is contained in:
Nathan Fritz 2011-09-19 11:53:09 -07:00
parent 1765271f84
commit cf7fcf496e

View file

@ -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):