summaryrefslogtreecommitdiff
path: root/slixmpp/xmlstream/xmlstream.py
diff options
context:
space:
mode:
Diffstat (limited to 'slixmpp/xmlstream/xmlstream.py')
-rw-r--r--slixmpp/xmlstream/xmlstream.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/slixmpp/xmlstream/xmlstream.py b/slixmpp/xmlstream/xmlstream.py
index 35d57869..f6bd97a9 100644
--- a/slixmpp/xmlstream/xmlstream.py
+++ b/slixmpp/xmlstream/xmlstream.py
@@ -435,9 +435,11 @@ class XMLStream(asyncio.BaseProtocol):
Forcibly close the connection
"""
if self.transport:
+ self.transport.close()
self.transport.abort()
self.event("killed")
self.disconnected.set_result(True)
+ self.disconnected = asyncio.Future()
def reconnect(self, wait=2.0):
"""Calls disconnect(), and once we are disconnected (after the timeout, or