aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey <[email protected]>2020-06-18 09:41:40 +1000
committerRapptz <[email protected]>2020-06-22 04:00:40 -0400
commit4078d64520562c9359b5b96a6d3e85b0b976b387 (patch)
treeb6d8112a70542ee616d3f385e07c0d560f5cc682
parentEscape masked URLs; Support quotes for as_needed (diff)
downloaddiscord.py-4078d64520562c9359b5b96a6d3e85b0b976b387.tar.xz
discord.py-4078d64520562c9359b5b96a6d3e85b0b976b387.zip
Fix reconnecting loop due to failed handshake on region change
-rw-r--r--discord/voice_client.py1
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