mirror of
https://github.com/daeuniverse/dae.git
synced 2025-07-26 15:49:37 +07:00
fix: udp sniffer reading
This commit is contained in:
@ -98,6 +98,9 @@ func (s *Sniffer) SniffUdp() (d string, err error) {
|
|||||||
s.readMu.Lock()
|
s.readMu.Lock()
|
||||||
defer s.readMu.Unlock()
|
defer s.readMu.Unlock()
|
||||||
|
|
||||||
|
// Always ready.
|
||||||
|
close(s.dataReady)
|
||||||
|
|
||||||
if len(s.buf) == 0 {
|
if len(s.buf) == 0 {
|
||||||
return "", NotApplicableError
|
return "", NotApplicableError
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user