From a4ccc7cc7fe04c9282a24942df67a224244928e7 Mon Sep 17 00:00:00 2001 From: Raja Subramanian Date: Thu, 30 Jan 2025 11:57:58 +0530 Subject: [PATCH] Run bandwidth estimation when congestion is relieved also (#3380) --- pkg/sfu/bwe/sendsidebwe/congestion_detector.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/sfu/bwe/sendsidebwe/congestion_detector.go b/pkg/sfu/bwe/sendsidebwe/congestion_detector.go index 270b284df..20869df88 100644 --- a/pkg/sfu/bwe/sendsidebwe/congestion_detector.go +++ b/pkg/sfu/bwe/sendsidebwe/congestion_detector.go @@ -1029,7 +1029,8 @@ func (c *congestionDetector) updateCTRTrend(pi *packetInfo, sendDelta, recvDelta } func (c *congestionDetector) estimateAvailableChannelCapacity() { - if len(c.packetGroups) == 0 || c.congestedCTRTrend != nil || c.probePacketGroup != nil { + c.estimateTrafficStats = nil + if len(c.packetGroups) == 0 || c.probePacketGroup != nil { return }