diff --git a/component/sniffing/sniffer.go b/component/sniffing/sniffer.go index 0d4849d..5e286dc 100644 --- a/component/sniffing/sniffer.go +++ b/component/sniffing/sniffer.go @@ -98,6 +98,9 @@ func (s *Sniffer) SniffUdp() (d string, err error) { s.readMu.Lock() defer s.readMu.Unlock() + // Always ready. + close(s.dataReady) + if len(s.buf) == 0 { return "", NotApplicableError }