From 42a86fe0d407521ba23b21ba5d95fa2779186ddb Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Tue, 27 Dec 2011 18:01:26 -0500 Subject: Disconnect when a SyntaxError is found. This should resolve issue #102 --- sleekxmpp/xmlstream/xmlstream.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py index 3e569082..fb9f91bc 100644 --- a/sleekxmpp/xmlstream/xmlstream.py +++ b/sleekxmpp/xmlstream/xmlstream.py @@ -1159,6 +1159,7 @@ class XMLStream(object): shutdown = True except SyntaxError as e: log.error("Error reading from XML stream.") + shutdown = True self.exception(e) except Socket.error as serr: self.event('socket_error', serr) -- cgit v1.2.3