correct RUnlock (#826)

This commit is contained in:
cnderrauber
2022-07-11 12:27:57 +08:00
committed by GitHub
parent 01f7309adc
commit 4280a5993b
+1 -1
View File
@@ -266,7 +266,7 @@ func (t *MediaTrackReceiver) OnVideoLayerUpdate(f func(layers []*livekit.VideoLa
func (t *MediaTrackReceiver) TryClose() bool { func (t *MediaTrackReceiver) TryClose() bool {
t.lock.RLock() t.lock.RLock()
if len(t.receiversShadow) > 0 { if len(t.receiversShadow) > 0 {
t.lock.Unlock() t.lock.RUnlock()
return false return false
} }
t.lock.RUnlock() t.lock.RUnlock()