aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/voice_client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/voice_client.py b/discord/voice_client.py
index 09edfa2e..bf857572 100644
--- a/discord/voice_client.py
+++ b/discord/voice_client.py
@@ -144,7 +144,7 @@ class VoiceClient:
try:
yield from asyncio.wait_for(self._handshake_complete.wait(), timeout=self.timeout, loop=self.loop)
except asyncio.TimeoutError as e:
- yield from ws.voice_state(guild_id, None, self_mute=True)
+ yield from self.terminate_handshake(remove=True)
raise e
log.info('Voice handshake complete. Endpoint found %s (IP: %s)', self.endpoint, self.endpoint_ip)