diff options
author | mathieui <mathieui@mathieui.net> | 2015-07-28 23:54:11 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2015-08-08 17:34:05 +0200 |
commit | f9c7fa92ea8b07baa56bce111915322237fd8256 (patch) | |
tree | 162df421d9ef0a672f264238fcfd66dfb57095c7 | |
parent | e75a160d52f8850155fd1a62813bd532cf58ffc0 (diff) | |
download | slixmpp-f9c7fa92ea8b07baa56bce111915322237fd8256.tar.gz slixmpp-f9c7fa92ea8b07baa56bce111915322237fd8256.tar.bz2 slixmpp-f9c7fa92ea8b07baa56bce111915322237fd8256.tar.xz slixmpp-f9c7fa92ea8b07baa56bce111915322237fd8256.zip |
Reset the connect future after a disconnect
-rw-r--r-- | slixmpp/xmlstream/xmlstream.py | 2 |
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 |