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() root.clear()
except SyntaxError: except SyntaxError:
log.error("Error reading from XML stream.") log.error("Error reading from XML stream.")
self.disconnect(self.auto_reconnect)
log.debug("Ending read XML loop") log.debug("Ending read XML loop")
def _build_stanza(self, xml, default_ns=None): def _build_stanza(self, xml, default_ns=None):