correct RUnlock (#826)

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