diff options
| author | Jeffrey <[email protected]> | 2020-06-18 09:41:40 +1000 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-06-22 04:00:40 -0400 |
| commit | 4078d64520562c9359b5b96a6d3e85b0b976b387 (patch) | |
| tree | b6d8112a70542ee616d3f385e07c0d560f5cc682 | |
| parent | Escape masked URLs; Support quotes for as_needed (diff) | |
| download | discord.py-4078d64520562c9359b5b96a6d3e85b0b976b387.tar.xz discord.py-4078d64520562c9359b5b96a6d3e85b0b976b387.zip | |
Fix reconnecting loop due to failed handshake on region change
| -rw-r--r-- | discord/voice_client.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/discord/voice_client.py b/discord/voice_client.py index f0d2fc80..047f54ae 100644 --- a/discord/voice_client.py +++ b/discord/voice_client.py @@ -202,6 +202,7 @@ class VoiceClient: if self._handshake_complete.is_set(): # terminate the websocket and handle the reconnect loop if necessary. self._handshake_complete.clear() + self._handshaking = False await self.ws.close(4000) return |