Respect reattempt=False setting when reconnecting.

This commit is contained in:
Lance Stout 2012-03-21 10:28:26 -07:00
parent 1c83391948
commit d5484808a7

View file

@ -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)