summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-01-25 09:59:24 +0100
committermathieui <mathieui@mathieui.net>2021-01-29 15:33:44 +0100
commitb2dfb4c1f3ac2d7d034942bac41b7d026bc90699 (patch)
treed55ea9e1def12a681ea77428e2098104f9021688
parentd227579d56f827a96ac8563f7820e7960f3a92a1 (diff)
downloadslixmpp-b2dfb4c1f3ac2d7d034942bac41b7d026bc90699.tar.gz
slixmpp-b2dfb4c1f3ac2d7d034942bac41b7d026bc90699.tar.bz2
slixmpp-b2dfb4c1f3ac2d7d034942bac41b7d026bc90699.tar.xz
slixmpp-b2dfb4c1f3ac2d7d034942bac41b7d026bc90699.zip
xmlstream: do not touch connection state on abort()
leave it to the connection_lost handler
-rw-r--r--slixmpp/xmlstream/xmlstream.py4
1 files changed, 0 insertions, 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