mirror of
https://github.com/daeuniverse/dae.git
synced 2024-12-22 14:44:39 +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 {
|
||||
go func() {
|
||||
// Read once.
|
||||
n, err := s.buf.ReadFromOnce(s.r)
|
||||
_, err = s.buf.ReadFromOnce(s.r)
|
||||
if err != nil {
|
||||
s.dataError = err
|
||||
}
|
||||
if n == 0 {
|
||||
s.dataError = io.EOF
|
||||
}
|
||||
close(s.dataReady)
|
||||
}()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user