fire 'disconnected' callback from abort()
This commit is contained in:
parent
ab9040c30e
commit
5be46a5e68
1 changed files with 1 additions and 0 deletions
|
@ -516,6 +516,7 @@ class XMLStream(asyncio.BaseProtocol):
|
|||
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 a new issue