Skip to content

Commit

Permalink
Fix crash when multiple sinks attached to single video track (livekit…
Browse files Browse the repository at this point in the history
  • Loading branch information
davidliu authored Jan 30, 2024
1 parent d8e44ee commit 1cc0c67
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ abstract class VideoTrack(name: String, override val rtcTrack: VideoTrack) :
executeBlockingOnRTCThread {
for (sink in sinks) {
rtcTrack.removeSink(sink)
sinks.clear()
}
sinks.clear()
}
super.stop()
}
Expand Down

0 comments on commit 1cc0c67

Please sign in to comment.