fix timing issue for clear receiver (#497)

This commit is contained in:
cnderrauber
2022-03-09 21:38:01 +08:00
committed by GitHub
parent acbafa06f2
commit d31c9f607e
2 changed files with 1 additions and 1 deletions
-1
View File
@@ -108,7 +108,6 @@ func (t *MediaTrackReceiver) OnVideoLayerUpdate(f func(layers []*livekit.VideoLa
func (t *MediaTrackReceiver) Close() {
t.lock.Lock()
t.receiver = nil
onclose := t.onClose
t.lock.Unlock()