summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-02-10 19:28:12 -0800
committerLance Stout <lancestout@gmail.com>2012-02-10 19:28:12 -0800
commit61ea84093b9e6c8da93a6f2e970fb25b32765723 (patch)
treedd388a7eeadb5d1d83e5100bc88bff37b242dc29 /sleekxmpp/xmlstream
parente76d6a481f3ab30d61ce808c79ae9d8088582ca8 (diff)
downloadslixmpp-61ea84093b9e6c8da93a6f2e970fb25b32765723.tar.gz
slixmpp-61ea84093b9e6c8da93a6f2e970fb25b32765723.tar.bz2
slixmpp-61ea84093b9e6c8da93a6f2e970fb25b32765723.tar.xz
slixmpp-61ea84093b9e6c8da93a6f2e970fb25b32765723.zip
Don't shutdown completely after handling SyntaxError.
The ``shutdown = True`` line was preventing the stream from reconnecting after handling the error. Fixes issues #101, #145
Diffstat (limited to 'sleekxmpp/xmlstream')
-rw-r--r--sleekxmpp/xmlstream/xmlstream.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py
index d571c0fa..8305a91b 100644
--- a/sleekxmpp/xmlstream/xmlstream.py
+++ b/sleekxmpp/xmlstream/xmlstream.py
@@ -1242,7 +1242,6 @@ 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, direct=True)