summaryrefslogtreecommitdiff
path: root/sleekxmpp
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-08-07 01:40:29 -0700
committerLance Stout <lancestout@gmail.com>2012-08-07 01:40:29 -0700
commit75d904ed01921eaa95ba3cd22c4740d77729913d (patch)
tree96d1126ddcac3fe3db82062f731b2abff4a27149 /sleekxmpp
parentf81d5e4bd656fb64dd7f4285afa26e452a869a63 (diff)
parentaebcf6ff828bf179af95df38d7f8ffa54f289c36 (diff)
downloadslixmpp-75d904ed01921eaa95ba3cd22c4740d77729913d.tar.gz
slixmpp-75d904ed01921eaa95ba3cd22c4740d77729913d.tar.bz2
slixmpp-75d904ed01921eaa95ba3cd22c4740d77729913d.tar.xz
slixmpp-75d904ed01921eaa95ba3cd22c4740d77729913d.zip
Merge branch 'master' into develop
Diffstat (limited to 'sleekxmpp')
-rw-r--r--sleekxmpp/xmlstream/xmlstream.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py
index 51dc25ed..f72171a1 100644
--- a/sleekxmpp/xmlstream/xmlstream.py
+++ b/sleekxmpp/xmlstream/xmlstream.py
@@ -147,6 +147,8 @@ class XMLStream(object):
#: client certificate to use for authenticating via SASL EXTERNAL.
self.keyfile = None
+ self._der_cert = None
+
#: The time in seconds to wait for events from the event queue,
#: and also the time between checks for the process stop signal.
self.wait_timeout = WAIT_TIMEOUT
@@ -477,7 +479,7 @@ class XMLStream(object):
log.debug("No remaining DNS records to try.")
self.dns_answers = None
if reattempt:
- self.reconnect_delay = None
+ self.reconnect_delay = delay
return False
af = Socket.AF_INET
@@ -692,11 +694,13 @@ class XMLStream(object):
if send_close:
self.send_raw(self.stream_footer, now=True)
+ if not reconnect:
+ self.auto_reconnect = False
+
# Wait for confirmation that the stream was
# closed in the other direction. If we didn't
# send a stream footer we don't need to wait
# since the server won't know to respond.
- self.auto_reconnect = reconnect
if send_close:
log.info('Waiting for %s from server', self.stream_footer)
self.stream_end_event.wait(4)