Clear the connected flag when potentially reconnecting the player

Fix #5953
This commit is contained in:
Rapptz 2020-11-21 22:52:50 -05:00
parent b76b5b42c0
commit 52865dfa99

View File

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