From cf7fcf496e0d00ea9dc9d9de52562630d2072f55 Mon Sep 17 00:00:00 2001 From: Nathan Fritz Date: Mon, 19 Sep 2011 11:53:09 -0700 Subject: [PATCH] SyntaxError requires a restart --- sleekxmpp/xmlstream/xmlstream.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py index 10f4a05..3936031 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):