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
This commit is contained in:
Lance Stout 2012-02-10 19:28:12 -08:00
parent e76d6a481f
commit 61ea84093b

View file

@ -1242,7 +1242,6 @@ class XMLStream(object):
shutdown = True shutdown = True
except SyntaxError as e: except SyntaxError as e:
log.error("Error reading from XML stream.") log.error("Error reading from XML stream.")
shutdown = True
self.exception(e) self.exception(e)
except Socket.error as serr: except Socket.error as serr:
self.event('socket_error', serr, direct=True) self.event('socket_error', serr, direct=True)