mirror of
https://github.com/livekit/livekit.git
synced 2026-10-23 21:44:29 +00:00
correct RUnlock (#826)
This commit is contained in:
1 parent
01f7309adc
commit
4280a5993b
1 file changed
+1
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user