Skip to content

Commit 00d3ffa

Browse files
authored
AudioSource: fix wrong assert (#281)
1 parent 444a5c9 commit 00d3ffa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

livekit-rtc/livekit/rtc/audio_source.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ async def wait_for_playout(self) -> None:
166166
await asyncio.shield(self._join_fut)
167167

168168
def _release_waiter(self) -> None:
169-
assert self._join_fut is not None
169+
if self._join_fut is None:
170+
return # could be None when clear_queue is called
170171

171172
if not self._join_fut.done():
172173
self._join_fut.set_result(None)

0 commit comments

Comments
 (0)