diff --git a/pkg/rfc8888/interceptor.go b/pkg/rfc8888/interceptor.go index efe2df29..77706382 100644 --- a/pkg/rfc8888/interceptor.go +++ b/pkg/rfc8888/interceptor.go @@ -163,7 +163,8 @@ func (s *SenderInterceptor) loop(writer interceptor.RTCPWriter) { s.log.Tracef("got packet: %v", pkt) s.recorder.AddPacket(pkt.arrival, pkt.ssrc, pkt.sequenceNumber, pkt.ecn) - case now := <-t.Ch(): + case <-t.Ch(): + now := time.Now() s.log.Tracef("report triggered at %v", now) if writer == nil { s.log.Trace("no writer added, continue")