From d5484808a794e13e005db9e5a7f910b5c62bcca2 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Wed, 21 Mar 2012 10:28:26 -0700 Subject: Respect reattempt=False setting when reconnecting. --- sleekxmpp/xmlstream/xmlstream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py index 6ba82c37..8dfae7f4 100644 --- a/sleekxmpp/xmlstream/xmlstream.py +++ b/sleekxmpp/xmlstream/xmlstream.py @@ -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) -- cgit v1.2.3