summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-03-21 10:28:26 -0700
committerLance Stout <lancestout@gmail.com>2012-03-21 10:28:26 -0700
commitd5484808a794e13e005db9e5a7f910b5c62bcca2 (patch)
tree429f7ce1be7557e090fdb2d48522315986adc768
parent1c83391948a04858c9a2d61deb5a838487e7f022 (diff)
downloadslixmpp-d5484808a794e13e005db9e5a7f910b5c62bcca2.tar.gz
slixmpp-d5484808a794e13e005db9e5a7f910b5c62bcca2.tar.bz2
slixmpp-d5484808a794e13e005db9e5a7f910b5c62bcca2.tar.xz
slixmpp-d5484808a794e13e005db9e5a7f910b5c62bcca2.zip
Respect reattempt=False setting when reconnecting.
-rw-r--r--sleekxmpp/xmlstream/xmlstream.py2
1 files changed, 1 insertions, 1 deletions
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)