mirror of
https://github.com/daeuniverse/dae.git
synced 2024-12-23 01:14:46 +07:00
fix(sniffer): remove useless EOF warning logs printing (#650)
This commit is contained in:
parent
a7675988d8
commit
da8890c38a
@ -107,13 +107,10 @@ func (s *Sniffer) SniffTcp() (d string, err error) {
|
|||||||
if s.stream {
|
if s.stream {
|
||||||
go func() {
|
go func() {
|
||||||
// Read once.
|
// Read once.
|
||||||
n, err := s.buf.ReadFromOnce(s.r)
|
_, err = s.buf.ReadFromOnce(s.r)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
s.dataError = err
|
s.dataError = err
|
||||||
}
|
}
|
||||||
if n == 0 {
|
|
||||||
s.dataError = io.EOF
|
|
||||||
}
|
|
||||||
close(s.dataReady)
|
close(s.dataReady)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user