Do not double count NACK miss in sfu.DownTrack
@@ -1068,11 +1068,10 @@ func (d *DownTrack) retransmitPackets(nacks []uint16) {
pktBuff := *src
n, err := d.receiver.ReadRTP(pktBuff, uint8(meta.layer), meta.sourceSeqNo)
if err != nil {
- d.rtpStats.UpdateNackMiss(1)
+ nackMisses++
if err == io.EOF {
break
}
- nackMisses++
continue
}
var pkt rtp.Packet
