From b2dfb4c1f3ac2d7d034942bac41b7d026bc90699 Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 25 Jan 2021 09:59:24 +0100 Subject: xmlstream: do not touch connection state on abort() leave it to the connection_lost handler --- slixmpp/xmlstream/xmlstream.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/slixmpp/xmlstream/xmlstream.py b/slixmpp/xmlstream/xmlstream.py index 5f675e3f..c84b40e1 100644 --- a/slixmpp/xmlstream/xmlstream.py +++ b/slixmpp/xmlstream/xmlstream.py @@ -578,11 +578,7 @@ class XMLStream(asyncio.BaseProtocol): self.cancel_connection_attempt() self.transport.close() self.transport.abort() - self.transport = None self.event("killed") - self.disconnected.set_result(True) - self.disconnected = asyncio.Future() - self.event("disconnected", self.disconnect_reason) def reconnect(self, wait=2.0, reason="Reconnecting"): """Calls disconnect(), and once we are disconnected (after the timeout, or -- cgit v1.2.3