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():
|
if self._handshake_complete.is_set():
|
||||||
# terminate the websocket and handle the reconnect loop if necessary.
|
# terminate the websocket and handle the reconnect loop if necessary.
|
||||||
self._handshake_complete.clear()
|
self._handshake_complete.clear()
|
||||||
|
self._handshaking = False
|
||||||
await self.ws.close(4000)
|
await self.ws.close(4000)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user