diff options
author | Maxime “pep” Buquet <pep@bouah.net> | 2019-08-28 00:12:10 +0200 |
---|---|---|
committer | Maxime “pep” Buquet <pep@bouah.net> | 2019-08-28 00:12:10 +0200 |
commit | db13794e0f0218af3ae76e852a704a6e86244b29 (patch) | |
tree | 4d973fc363896e53c3a2fa7b96cf203849f0e1d8 | |
parent | 37bc1bb9b3bdc26b7f28b30406d1013f9b0f6ceb (diff) | |
download | slixmpp-db13794e0f0218af3ae76e852a704a6e86244b29.tar.gz slixmpp-db13794e0f0218af3ae76e852a704a6e86244b29.tar.bz2 slixmpp-db13794e0f0218af3ae76e852a704a6e86244b29.tar.xz slixmpp-db13794e0f0218af3ae76e852a704a6e86244b29.zip |
Revert "Remove a block of compatibility code"
This reverts commit 37bc1bb9b3bdc26b7f28b30406d1013f9b0f6ceb.
Confusion confusion. Mathieui thought this was a sleekxmpp thing when
it's actually been added not so long ago.
-rw-r--r-- | slixmpp/xmlstream/xmlstream.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/slixmpp/xmlstream/xmlstream.py b/slixmpp/xmlstream/xmlstream.py index 23000cc7..9f6f3083 100644 --- a/slixmpp/xmlstream/xmlstream.py +++ b/slixmpp/xmlstream/xmlstream.py @@ -468,6 +468,13 @@ class XMLStream(asyncio.BaseProtocol): :param wait: Time to wait for a response from the server. """ + # Compat: docs/getting_started/sendlogout.rst has been promoting + # `disconnect(wait=True)` for ages. This doesn't mean anything to the + # schedule call below. It would fortunately be converted to `1` later + # down the call chain. Praise the implicit casts lord. + if wait == True: + wait = 2.0 + self.disconnect_reason = reason self.cancel_connection_attempt() if self.transport: |