Disconnect when a SyntaxError is found.

This should resolve issue #102
This commit is contained in:
Lance Stout 2011-12-27 18:01:26 -05:00
parent fb55d9e9d1
commit 42a86fe0d4

View file

@ -1159,6 +1159,7 @@ 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) self.event('socket_error', serr)