mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-22 16:51:59 +00:00
Clear the connected flag when potentially reconnecting the player
Fix #5953
This commit is contained in:
parent
b76b5b42c0
commit
52865dfa99
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user