From c58462f154adede01b7cc44dd60cc7d0f8beef80 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Fri, 17 Feb 2012 11:12:48 -0800 Subject: [PATCH] Fix undeclared variable usage for reconnect. --- sleekxmpp/xmlstream/xmlstream.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py index 46ff02b..c15bd65 100644 --- a/sleekxmpp/xmlstream/xmlstream.py +++ b/sleekxmpp/xmlstream/xmlstream.py @@ -1488,9 +1488,7 @@ class XMLStream(object): log.debug('SSL error - max retries reached') self.exception(serr) log.warning("Failed to send %s", data) - if reconnect is None: - reconnect = self.auto_reconnect - self.disconnect(reconnect) + self.disconnect(self.auto_reconnect) log.warning('SSL write error - reattempting') time.sleep(self.ssl_retry_delay) tries += 1