mirror of
https://github.com/livekit/livekit.git
synced 2026-03-31 02:25:39 +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:
@@ -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