Do not directly enqueue connect() as event handler, parameter mismatch
This commit is contained in:
parent
bcb90a653e
commit
4f96e5fa75
@ -501,7 +501,7 @@ class XMLStream(asyncio.BaseProtocol):
|
|||||||
"""
|
"""
|
||||||
log.debug("reconnecting...")
|
log.debug("reconnecting...")
|
||||||
self.disconnect(wait, reason)
|
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):
|
def configure_socket(self):
|
||||||
"""Set timeout and other options for self.socket.
|
"""Set timeout and other options for self.socket.
|
||||||
|
Loading…
Reference in New Issue
Block a user