Skip to content

Commit c0b1e1c

Browse files
fixed unpublish track error by adding stop_on_unpublish value (#325)
1 parent bb53150 commit c0b1e1c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

livekit-rtc/livekit/rtc/participant.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,7 @@ async def unpublish_track(self, track_sid: str) -> None:
565565
req = proto_ffi.FfiRequest()
566566
req.unpublish_track.local_participant_handle = self._ffi_handle.handle
567567
req.unpublish_track.track_sid = track_sid
568+
req.unpublish_track.stop_on_unpublish = True
568569

569570
queue = self._room_queue.subscribe()
570571
try:

0 commit comments

Comments
 (0)