mirror of
https://github.com/livekit/livekit.git
synced 2026-07-21 11:11:17 +00:00
Ignore 0 RTT for nacker (#424)
- Propagate when a track is added - Reduce scope of lock
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user