summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Lukas <georg@op-co.de>2019-03-26 11:08:45 +0100
committerGeorg Lukas <georg@op-co.de>2019-03-26 12:09:43 +0100
commit4f96e5fa75773f8f3c5df849edfca8315d746905 (patch)
tree1fe7a575d01be370fb4d087b1917ac1663cf9d67
parentbcb90a653eef0564a7a6d604b1f7ec809a777520 (diff)
downloadslixmpp-4f96e5fa75773f8f3c5df849edfca8315d746905.tar.gz
slixmpp-4f96e5fa75773f8f3c5df849edfca8315d746905.tar.bz2
slixmpp-4f96e5fa75773f8f3c5df849edfca8315d746905.tar.xz
slixmpp-4f96e5fa75773f8f3c5df849edfca8315d746905.zip
Do not directly enqueue connect() as event handler, parameter mismatch
-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.