xmlstream: do not touch connection state on abort()
leave it to the connection_lost handler
This commit is contained in:
parent
d227579d56
commit
b2dfb4c1f3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user