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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user