From 61ea84093b9e6c8da93a6f2e970fb25b32765723 Mon Sep 17 00:00:00 2001
From: Lance Stout <lancestout@gmail.com>
Date: Fri, 10 Feb 2012 19:28:12 -0800
Subject: 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
---
 sleekxmpp/xmlstream/xmlstream.py | 1 -
 1 file changed, 1 deletion(-)

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)
-- 
cgit v1.2.3