Mark last run of grow bucket outside goroutine. (#4348)

* straem tracker debug logging

* tracker

* debug

* clean up
This commit is contained in:
Raja Subramanian
2026-03-06 19:36:13 +05:30
committed by GitHub
parent caa47522fb
commit 7eaaaada5d

View File

@@ -1209,13 +1209,13 @@ func (b *BufferBase) maybeGrowBucket(now int64) {
return
}
b.lastBucketCapCheckAt = now
// check and allocate in a go routine, away from the forwarding path
go func() {
b.Lock()
defer b.Unlock()
b.lastBucketCapCheckAt = now
cap := b.bucket.Capacity()
maxPkts := b.params.MaxVideoPkts
if b.codecType == webrtc.RTPCodecTypeAudio {