Let track events go through after participant close. (#2487)

* Let track events go through after participant close.

Also, reducing lock scope in telemetry service.

* use shadow
This commit is contained in:
Raja Subramanian
2024-02-17 13:40:07 +05:30
committed by GitHub
parent 8d7257dd19
commit 5ac5bd236a
3 changed files with 31 additions and 12 deletions
+1 -1
View File
@@ -2063,7 +2063,7 @@ func (p *ParticipantImpl) addMediaTrack(signalCid string, sdpCid string, ti *liv
p.ID(),
p.Identity(),
mt.ToProto(),
!p.IsClosed(),
true,
)
// re-use Track sid
+1 -1
View File
@@ -662,7 +662,7 @@ func (m *SubscriptionManager) handleSubscribedTrackClose(s *trackSubscription, w
context.Background(),
m.params.Participant.ID(),
&livekit.TrackInfo{Sid: string(s.trackID), Type: subTrack.MediaTrack().Kind()},
!willBeResumed && !m.params.Participant.IsClosed(),
!willBeResumed,
)
dt := subTrack.DownTrack()