From 4f96e5fa75773f8f3c5df849edfca8315d746905 Mon Sep 17 00:00:00 2001 From: Georg Lukas Date: Tue, 26 Mar 2019 11:08:45 +0100 Subject: Do not directly enqueue connect() as event handler, parameter mismatch --- slixmpp/xmlstream/xmlstream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- cgit v1.2.3