From a30c79fa6de1252166c0251d9e4a31b6c6017066 Mon Sep 17 00:00:00 2001 From: Raja Subramanian Date: Sat, 6 Dec 2025 19:55:20 +0530 Subject: [PATCH] Use isEnding to indicate if down track could be resumed. (#4132) There is no need to cache down track if participant is going away. --- pkg/sfu/downtrack.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/sfu/downtrack.go b/pkg/sfu/downtrack.go index 774222099..7eebbf0dd 100644 --- a/pkg/sfu/downtrack.go +++ b/pkg/sfu/downtrack.go @@ -1399,7 +1399,7 @@ func (d *DownTrack) CloseWithFlush(flush bool, isEnding bool) { close(d.keyFrameRequesterCh) d.keyFrameRequesterChMu.Unlock() - d.params.Listener.OnDownTrackClose(!flush) + d.params.Listener.OnDownTrackClose(!isEnding) } func (d *DownTrack) SetMaxSpatialLayer(spatialLayer int32) {