Skip to content

Commit

Permalink
Move fix to put_wait instead of put
Browse files Browse the repository at this point in the history
  • Loading branch information
DanLCD authored Apr 16, 2024
1 parent bf20568 commit 226a128
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wavelink/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,6 @@ def put(self, item: list[Playable] | Playable | Playlist, /, *, atomic: bool = T
if atomic:
self._check_atomic(item)
self._items.extend(item)
self._wakeup_next()
added = len(item)
else:

Expand Down Expand Up @@ -444,6 +443,7 @@ async def put_wait(self, item: list[Playable] | Playable | Playlist, /, *, atomi
if atomic:
self._check_atomic(item)
self._items.extend(item)
self._wakeup_next()
return len(item)

for track in item:
Expand Down

0 comments on commit 226a128

Please sign in to comment.