From 5be46a5e688bd938f4346e71a5700a090fcda309 Mon Sep 17 00:00:00 2001 From: Georg Lukas Date: Sat, 4 Apr 2020 13:13:20 +0200 Subject: fire 'disconnected' callback from abort() --- slixmpp/xmlstream/xmlstream.py | 1 + 1 file changed, 1 insertion(+) diff --git a/slixmpp/xmlstream/xmlstream.py b/slixmpp/xmlstream/xmlstream.py index 594acbdd..06fa058c 100644 --- a/slixmpp/xmlstream/xmlstream.py +++ b/slixmpp/xmlstream/xmlstream.py @@ -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 -- cgit v1.2.3