mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Fix reconnecting loop due to failed handshake on region change
This commit is contained in:
parent
a2148d6d1a
commit
4078d64520
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user