mirror of
https://github.com/livekit/livekit.git
synced 2026-05-15 03:05:26 +00:00
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)
|
||||
if mid == "" {
|
||||
p.pendingTracksLock.Unlock()
|
||||
p.pubLogger.Warnw("could not get mid for track", nil, "trackID", track.ID())
|
||||
return nil, false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user