summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-02-17 11:12:48 -0800
committerLance Stout <lancestout@gmail.com>2012-02-17 11:12:48 -0800
commitc58462f154adede01b7cc44dd60cc7d0f8beef80 (patch)
tree28a3f7de63ed0f955bea120b3353679d124308a7
parentfb2582e53bf0e8f1a3ad5273becf0c12a76d121f (diff)
downloadslixmpp-c58462f154adede01b7cc44dd60cc7d0f8beef80.tar.gz
slixmpp-c58462f154adede01b7cc44dd60cc7d0f8beef80.tar.bz2
slixmpp-c58462f154adede01b7cc44dd60cc7d0f8beef80.tar.xz
slixmpp-c58462f154adede01b7cc44dd60cc7d0f8beef80.zip
Fix undeclared variable usage for reconnect.
-rw-r--r--sleekxmpp/xmlstream/xmlstream.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py
index 46ff02bb..c15bd657 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