aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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