Skip to content
This repository was archived by the owner on Apr 5, 2025. It is now read-only.

Commit d4ffab9

Browse files
authored
Fix potential get_wait hang if queue only receives a list in `put_w… (#298)
* Fix potential `get_wait` hang if queue only receives a list in `put_wait` `get_wait` would never have its waiter woken up if a list were to be passed in an atomic `put_wait` with no subsequent calls of another type. * Move fix to `put_wait` instead of `put`
1 parent db0aa3b commit d4ffab9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

wavelink/queue.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@ async def put_wait(self, item: list[Playable] | Playable | Playlist, /, *, atomi
443443
if atomic:
444444
self._check_atomic(item)
445445
self._items.extend(item)
446+
self._wakeup_next()
446447
return len(item)
447448

448449
for track in item:

0 commit comments

Comments
 (0)