From 2a0a63e4be77d6b0653c0c19dc263c42f2db9ee2 Mon Sep 17 00:00:00 2001 From: Raja Subramanian Date: Fri, 30 Sep 2022 11:26:45 +0530 Subject: [PATCH] Increment NACK miss only if error is not EOF (#1061) --- 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 cca7258fa..a97a07b89 100644 --- a/pkg/sfu/downtrack.go +++ b/pkg/sfu/downtrack.go @@ -1234,10 +1234,10 @@ func (d *DownTrack) retransmitPackets(nacks []uint16) { pktBuff := *src n, err := d.receiver.ReadRTP(pktBuff, uint8(meta.layer), meta.sourceSeqNo) if err != nil { - nackMisses++ if err == io.EOF { break } + nackMisses++ continue }