summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Lukas <georg@op-co.de>2020-04-04 13:13:20 +0200
committerGeorg Lukas <georg@op-co.de>2020-04-04 13:16:33 +0200
commit5be46a5e688bd938f4346e71a5700a090fcda309 (patch)
tree16a9290e3c1a273e4f0ea984a1705552b33a5f31
parentab9040c30ecfadfcd30acf9980946aa74c097fe4 (diff)
downloadslixmpp-5be46a5e688bd938f4346e71a5700a090fcda309.tar.gz
slixmpp-5be46a5e688bd938f4346e71a5700a090fcda309.tar.bz2
slixmpp-5be46a5e688bd938f4346e71a5700a090fcda309.tar.xz
slixmpp-5be46a5e688bd938f4346e71a5700a090fcda309.zip
fire 'disconnected' callback from abort()
-rw-r--r--slixmpp/xmlstream/xmlstream.py1
1 files changed, 1 insertions, 0 deletions
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