summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream/xmlstream.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-12-27 18:01:26 -0500
committerLance Stout <lancestout@gmail.com>2011-12-27 18:01:26 -0500
commit42a86fe0d407521ba23b21ba5d95fa2779186ddb (patch)
treed9996bf8b75ecc3c82fc2ba41e213931b550278c /sleekxmpp/xmlstream/xmlstream.py
parentfb55d9e9d1ffd9ebec18dcf101308ac89dc865ad (diff)
downloadslixmpp-42a86fe0d407521ba23b21ba5d95fa2779186ddb.tar.gz
slixmpp-42a86fe0d407521ba23b21ba5d95fa2779186ddb.tar.bz2
slixmpp-42a86fe0d407521ba23b21ba5d95fa2779186ddb.tar.xz
slixmpp-42a86fe0d407521ba23b21ba5d95fa2779186ddb.zip
Disconnect when a SyntaxError is found.
This should resolve issue #102
Diffstat (limited to 'sleekxmpp/xmlstream/xmlstream.py')
-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 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)