diff options
author | Lance Stout <lancestout@gmail.com> | 2011-12-27 18:01:26 -0500 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2011-12-27 18:01:26 -0500 |
commit | 42a86fe0d407521ba23b21ba5d95fa2779186ddb (patch) | |
tree | d9996bf8b75ecc3c82fc2ba41e213931b550278c | |
parent | fb55d9e9d1ffd9ebec18dcf101308ac89dc865ad (diff) | |
download | slixmpp-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
-rw-r--r-- | sleekxmpp/xmlstream/xmlstream.py | 1 |
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) |