summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream/xmlstream.py
diff options
context:
space:
mode:
Diffstat (limited to 'sleekxmpp/xmlstream/xmlstream.py')
-rw-r--r--sleekxmpp/xmlstream/xmlstream.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py
index c8280c33..e11497f2 100644
--- a/sleekxmpp/xmlstream/xmlstream.py
+++ b/sleekxmpp/xmlstream/xmlstream.py
@@ -331,6 +331,7 @@ class XMLStream(object):
logging.debug("reconnecting...")
self.state.transition('connected', 'disconnected', wait=2.0,
func=self._disconnect, args=(True,))
+ logging.debug("connecting...")
return self.state.transition('disconnected', 'connected',
wait=2.0, func=self._connect)
@@ -693,7 +694,8 @@ class XMLStream(object):
except Socket.error:
logging.exception('Socket Error')
except:
- logging.exception('Connection error. Reconnecting.')
+ if not self.stop.isSet():
+ logging.exception('Connection error.')
if not self.stop.isSet() and self.auto_reconnect:
self.reconnect()
else: