Fix undeclared variable usage for reconnect.

This commit is contained in:
Lance Stout 2012-02-17 11:12:48 -08:00
parent fb2582e53b
commit c58462f154

View file

@ -1488,9 +1488,7 @@ class XMLStream(object):
log.debug('SSL error - max retries reached') log.debug('SSL error - max retries reached')
self.exception(serr) self.exception(serr)
log.warning("Failed to send %s", data) log.warning("Failed to send %s", data)
if reconnect is None: self.disconnect(self.auto_reconnect)
reconnect = self.auto_reconnect
self.disconnect(reconnect)
log.warning('SSL write error - reattempting') log.warning('SSL write error - reattempting')
time.sleep(self.ssl_retry_delay) time.sleep(self.ssl_retry_delay)
tries += 1 tries += 1