diff options
| author | Rapptz <[email protected]> | 2017-05-13 16:01:32 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-05-13 16:01:32 -0400 |
| commit | 64d09f3720f82318fede112e8ae8c034e842da41 (patch) | |
| tree | 9a4b97849e48f316c18f6527c5d46605cc2950af /discord/abc.py | |
| parent | Be more consistent with period placements. (diff) | |
| download | discord.py-64d09f3720f82318fede112e8ae8c034e842da41.tar.xz discord.py-64d09f3720f82318fede112e8ae8c034e842da41.zip | |
Force disconnect in abc.Connectable.connect.
Some cases of is_connected is not set so we need to force it to clear
it anyway.
Diffstat (limited to 'discord/abc.py')
| -rw-r--r-- | discord/abc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/abc.py b/discord/abc.py index 6f774f9b..d9fb03f4 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -940,7 +940,7 @@ class Connectable(metaclass=abc.ABCMeta): yield from voice.connect(reconnect=reconnect) except asyncio.TimeoutError as e: try: - yield from voice.disconnect() + yield from voice.disconnect(force=True) except: # we don't care if disconnect failed because connection failed pass |