Fixed deadlocks with updated simulcast logic

This commit is contained in:
David Zhao
2021-06-25 17:12:22 -07:00
parent 871ecd0366
commit c0c38f2e1d
7 changed files with 21 additions and 15 deletions
+1 -1
View File
@@ -533,8 +533,8 @@ func (p *ParticipantImpl) SendDataPacket(dp *livekit.DataPacket) error {
func (p *ParticipantImpl) SetTrackMuted(trackId string, muted bool) {
p.lock.RLock()
defer p.lock.RUnlock()
track := p.publishedTracks[trackId]
p.lock.RUnlock()
if track == nil {
logger.Warnw("could not locate track", nil, "track", trackId)
return