Don't print nil connection errors
This commit is contained in:
parent
d314adee59
commit
60cab19e46
|
@ -262,6 +262,9 @@ func (ln *Listener) serve() error {
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
err := ln.handle(conn)
|
err := ln.handle(conn)
|
||||||
|
if err == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
srv := ln.atomic.Load().(*listenerHandles).Server
|
srv := ln.atomic.Load().(*listenerHandles).Server
|
||||||
var clientErr clientError
|
var clientErr clientError
|
||||||
if !errors.As(err, &clientErr) || srv.Debug {
|
if !errors.As(err, &clientErr) || srv.Debug {
|
||||||
|
|
Loading…
Reference in New Issue