Skip to content

Commit

Permalink
Remove wait in Player cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
EvieePy authored Jan 17, 2025
1 parent 0a39dcf commit bc33ded
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions wavelink/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,7 @@ async def _disconnected_wait(self, code: int, by_remote: bool) -> None:
return

self._connected = False

if self._reconnecting.is_set():
await asyncio.sleep(self._should_wait)
else:
await self._reconnecting.wait()
await self._reconnecting.wait()

if self._connected:
return
Expand Down

0 comments on commit bc33ded

Please sign in to comment.