resolve downtrack.bind/close timing issue (#833)

* resolve downtrack.bind/close timing issue

* fix test case
This commit is contained in:
cnderrauber
2022-07-15 14:09:45 +08:00
committed by GitHub
parent a2bf32797b
commit a0578db3ed
4 changed files with 13 additions and 5 deletions
+2 -2
View File
@@ -974,8 +974,8 @@ func (p *ParticipantImpl) UpdateSubscribedTrackSettings(trackID livekit.TrackID,
subTrack := p.subscribedTracks[trackID]
if subTrack == nil {
p.lock.Unlock()
p.params.Logger.Warnw("could not find subscribed track", nil, "trackID", trackID)
return errors.New("could not find subscribed track")
p.params.Logger.Infow("could not find subscribed track", "trackID", trackID)
return nil
}
p.lock.Unlock()