From 8a7dd8f0d8d75568c456a17873df223109694223 Mon Sep 17 00:00:00 2001 From: myan-soft-dev-reactnative Date: Wed, 8 Jun 2022 15:12:12 +0700 Subject: [PATCH] avoid delete track when layer changed in simulcast --- pkg/sfu/receiver.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/sfu/receiver.go b/pkg/sfu/receiver.go index 62fe3f404..957be88e4 100644 --- a/pkg/sfu/receiver.go +++ b/pkg/sfu/receiver.go @@ -254,8 +254,6 @@ func (w *WebRTCReceiver) deleteDownTrack(layer int, id string) { for _, dt := range dts { if dt.id != id { ndts = append(ndts, dt) - } else { - dt.Close() } } w.downTracks[layer].Store(ndts)