mirror of
https://github.com/livekit/livekit.git
synced 2026-10-22 19:43:01 +00:00
Clean up published track on participant removal. (#3527)
Clean up the tracks in the synchronous path and remove track from track manager. This is not strictly required in a single node case. But, multi-node needs this. So, doing this here for consistency.
This commit is contained in:
1 parent
65d8aa2847
commit
20bddfea1e
1 file changed
+1
@@ -710,6 +710,7 @@ func (r *Room) RemoveParticipant(identity livekit.ParticipantIdentity, pID livek
|
||||
|
||||
// remove all published tracks
|
||||
for _, t := range p.GetPublishedTracks() {
|
||||
p.RemovePublishedTrack(t, false, true)
|
||||
r.trackManager.RemoveTrack(t)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user