p2p: silence on listener shutdown (#33001)

Co-authored-by: Felix Lange <fjl@twurst.com>
This commit is contained in:
Delweng 2025-10-23 16:44:54 +08:00 committed by GitHub
parent 116c916753
commit 2bb3d9a330
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -813,7 +813,9 @@ func (srv *Server) listenLoop() {
time.Sleep(time.Millisecond * 200)
continue
} else if err != nil {
srv.log.Debug("Read error", "err", err)
if !errors.Is(err, net.ErrClosed) {
srv.log.Debug("Read error", "err", err)
}
slots <- struct{}{}
return
}