summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slixmpp/xmlstream/xmlstream.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/slixmpp/xmlstream/xmlstream.py b/slixmpp/xmlstream/xmlstream.py
index 1fe52cee..ce7e29d9 100644
--- a/slixmpp/xmlstream/xmlstream.py
+++ b/slixmpp/xmlstream/xmlstream.py
@@ -501,7 +501,7 @@ class XMLStream(asyncio.BaseProtocol):
"""
log.debug("reconnecting...")
self.disconnect(wait, reason)
- self.add_event_handler('disconnected', self.connect, disposable=True)
+ self.add_event_handler('disconnected', lambda event: self.connect(), disposable=True)
def configure_socket(self):
"""Set timeout and other options for self.socket.