mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
p2p: silence on listener shutdown
This commit is contained in:
parent
116c916753
commit
8a1f28c77f
1 changed files with 4 additions and 1 deletions
|
|
@ -813,8 +813,11 @@ func (srv *Server) listenLoop() {
|
|||
time.Sleep(time.Millisecond * 200)
|
||||
continue
|
||||
} else if err != nil {
|
||||
srv.log.Debug("Read error", "err", err)
|
||||
slots <- struct{}{}
|
||||
if errors.Is(err, net.ErrClosed) {
|
||||
return
|
||||
}
|
||||
srv.log.Debug("Read error", "err", err)
|
||||
return
|
||||
}
|
||||
break
|
||||
|
|
|
|||
Loading…
Reference in a new issue