From 52865dfa99fa589f95c99503515c24537e35dd8c Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 21 Nov 2020 22:52:50 -0500 Subject: [PATCH] Clear the connected flag when potentially reconnecting the player Fix #5953 --- discord/voice_client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/discord/voice_client.py b/discord/voice_client.py index c97cbabb6efc..675fdae948ac 100644 --- a/discord/voice_client.py +++ b/discord/voice_client.py @@ -365,6 +365,8 @@ async def connect(self, *, reconnect, timeout): self._runner = self.loop.create_task(self.poll_voice_ws(reconnect)) async def potential_reconnect(self): + # Attempt to stop the player thread from playing early + self._connected.clear() self.prepare_handshake() self._potentially_reconnecting = True try: