diff --git a/pkg/jitter/packet_buffer.go b/pkg/jitter/packet_buffer.go index 237c397..8ecf783 100644 --- a/pkg/jitter/packet_buffer.go +++ b/pkg/jitter/packet_buffer.go @@ -55,5 +55,9 @@ func (p *PacketBuffer) Get() ([]byte, bool, int64) { p.Lock() defer p.Unlock() + if p.buffer == nil { + return nil, false, 0 + } + return p.buffer.Get() }