fix bug: p.pendingTracksLock.Unlock() when mid is empty (#1994)
This commit is contained in:
@@ -1687,6 +1687,7 @@ func (p *ParticipantImpl) mediaTrackReceived(track *webrtc.TrackRemote, rtpRecei
|
|||||||
)
|
)
|
||||||
mid := p.TransportManager.GetPublisherMid(rtpReceiver)
|
mid := p.TransportManager.GetPublisherMid(rtpReceiver)
|
||||||
if mid == "" {
|
if mid == "" {
|
||||||
|
p.pendingTracksLock.Unlock()
|
||||||
p.pubLogger.Warnw("could not get mid for track", nil, "trackID", track.ID())
|
p.pubLogger.Warnw("could not get mid for track", nil, "trackID", track.ID())
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user