fix timing issue for clear receiver (#497)
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user