Fix reconnecting loop due to failed handshake on region change

This commit is contained in:
Jeffrey 2020-06-18 09:41:40 +10:00 committed by Rapptz
parent a2148d6d1a
commit 4078d64520

View File

@ -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