mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-27 19:19:54 +00:00
Fix undeclared variable usage for reconnect.
This commit is contained in:
parent
fb2582e53b
commit
c58462f154
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue