Clone TrackInfo to TrackPublishRequested event. (#3377)
This is atleast one place where analytics objects are getting mutated.
This commit is contained in:
@@ -2267,7 +2267,7 @@ func (p *ParticipantImpl) addPendingTrackLocked(req *livekit.AddTrackRequest) *l
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
p.params.Telemetry.TrackPublishRequested(context.Background(), p.ID(), p.Identity(), ti)
|
p.params.Telemetry.TrackPublishRequested(context.Background(), p.ID(), p.Identity(), utils.CloneProto(ti))
|
||||||
if p.supervisor != nil {
|
if p.supervisor != nil {
|
||||||
p.supervisor.AddPublication(livekit.TrackID(ti.Sid))
|
p.supervisor.AddPublication(livekit.TrackID(ti.Sid))
|
||||||
p.supervisor.SetPublicationMute(livekit.TrackID(ti.Sid), ti.Muted)
|
p.supervisor.SetPublicationMute(livekit.TrackID(ti.Sid), ti.Muted)
|
||||||
|
|||||||
Reference in New Issue
Block a user