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.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py
index 8abbb3a1..c9b85bd8 100644
--- a/sleekxmpp/xmlstream/xmlstream.py
+++ b/sleekxmpp/xmlstream/xmlstream.py
@@ -530,12 +530,8 @@ class XMLStream(object):
"""
Reset the stream's state and reconnect to the server.
"""
- log.debug("reconnecting...")
- self.state.transition('connected', 'disconnected', wait=2.0,
- func=self._disconnect, args=(True,))
- log.debug("connecting...")
- return self.state.transition('disconnected', 'connected',
- wait=2.0, func=self._connect)
+ self.disconnect()
+ self.connect()
def set_socket(self, socket, ignore=False):
"""