Respect reattempt=False setting when reconnecting.
This commit is contained in:
parent
1c83391948
commit
d5484808a7
1 changed files with 1 additions and 1 deletions
|
@ -648,7 +648,7 @@ class XMLStream(object):
|
|||
|
||||
log.debug("connecting...")
|
||||
connected = self.state.transition('disconnected', 'connected',
|
||||
wait=2.0, func=self._connect)
|
||||
wait=2.0, func=self._connect, args=(reattempt,))
|
||||
while reattempt and not connected and not self.stop.is_set():
|
||||
connected = self.state.transition('disconnected', 'connected',
|
||||
wait=2.0, func=self._connect)
|
||||
|
|
Loading…
Reference in a new issue