Ignore 0 RTT for nacker (#424)

- Propagate when a track is added
- Reduce scope of lock
This commit is contained in:
Raja Subramanian
2022-02-09 14:08:07 +05:30
committed by GitHub
parent 222b02aa73
commit f4f9df375f
2 changed files with 14 additions and 6 deletions
+1 -1
View File
@@ -318,7 +318,7 @@ func (b *Buffer) SetRTT(rtt uint32) {
b.stats.RTT = rtt
if b.nacker != nil {
if b.nacker != nil && rtt != 0 {
b.nacker.SetRTT(rtt)
}
}