diff options
author | mathieui <mathieui@mathieui.net> | 2019-08-26 12:00:38 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2019-08-26 12:00:38 +0200 |
commit | 37bc1bb9b3bdc26b7f28b30406d1013f9b0f6ceb (patch) | |
tree | 1566baa4677e2bda368e2bb4a6e4bbac3dd86542 | |
parent | 9be30e52915c7523d932c5122efb8868995ca1ba (diff) | |
download | slixmpp-37bc1bb9b3bdc26b7f28b30406d1013f9b0f6ceb.tar.gz slixmpp-37bc1bb9b3bdc26b7f28b30406d1013f9b0f6ceb.tar.bz2 slixmpp-37bc1bb9b3bdc26b7f28b30406d1013f9b0f6ceb.tar.xz slixmpp-37bc1bb9b3bdc26b7f28b30406d1013f9b0f6ceb.zip |
Remove a block of compatibility code
even if the user makes that mistake, it does not cause problems down the
line.
-rw-r--r-- | slixmpp/xmlstream/xmlstream.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/slixmpp/xmlstream/xmlstream.py b/slixmpp/xmlstream/xmlstream.py index 9f6f3083..23000cc7 100644 --- a/slixmpp/xmlstream/xmlstream.py +++ b/slixmpp/xmlstream/xmlstream.py @@ -468,13 +468,6 @@ 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: |