mirror of
https://github.com/daeuniverse/dae.git
synced 2025-01-27 08:00:38 +07:00
fix: udp sniffer reading
This commit is contained in:
parent
4efed17ff9
commit
08f75bef44
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user