aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/voice_client.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/discord/voice_client.py b/discord/voice_client.py
index c97cbabb..675fdae9 100644
--- a/discord/voice_client.py
+++ b/discord/voice_client.py
@@ -365,6 +365,8 @@ class VoiceClient(VoiceProtocol):
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: