Don't print nil connection errors

This commit is contained in:
Simon Ser 2023-02-20 14:40:44 +01:00
parent d314adee59
commit 60cab19e46
1 changed files with 3 additions and 0 deletions

View File

@ -262,6 +262,9 @@ func (ln *Listener) serve() error {
go func() {
err := ln.handle(conn)
if err == nil {
return
}
srv := ln.atomic.Load().(*listenerHandles).Server
var clientErr clientError
if !errors.As(err, &clientErr) || srv.Debug {