Skip to content

Commit

Permalink
Fix queue loop not repeating song after it's finished (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackra1n authored Mar 17, 2024
1 parent bf60463 commit 66a1c9d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wavelink/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,7 @@ async def play(

old_previous = self._previous
self._previous = self._current
self.queue._loaded = track

pause: bool
if paused is not None:
Expand All @@ -809,6 +810,7 @@ async def play(
try:
await self.node._update_player(self.guild.id, data=request, replace=replace)
except LavalinkException as e:
self.queue._loaded = old_previous
self._current = None
self._original = None
self._previous = old_previous
Expand Down

0 comments on commit 66a1c9d

Please sign in to comment.