Fix null dereference (#343)

This commit is contained in:
Raja Subramanian
2022-01-15 23:25:48 +05:30
committed by GitHub
parent 416ca80a8b
commit d45435ed3d

View File

@@ -1450,7 +1450,9 @@ func (p *ParticipantImpl) getPendingTrack(clientId string, kind livekit.TrackTyp
// if still not found, we are done
if trackInfo == nil {
p.params.Logger.Errorw("track info not published prior to track", nil, "clientId", clientId)
return signalCid, nil
}
return signalCid, trackInfo.TrackInfo
}