From c79634706b25084176df02cd5393ab6aadf154fe Mon Sep 17 00:00:00 2001 From: Niko Storni Date: Fri, 23 Sep 2022 14:46:55 +0200 Subject: [PATCH] ignore server closed errors the right way --- server/http3/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/http3/server.go b/server/http3/server.go index 59e85e1..e85c9ad 100644 --- a/server/http3/server.go +++ b/server/http3/server.go @@ -155,7 +155,7 @@ func generateTLSConfig() *tls.Config { func (s *Server) listenAndServe(server *http3.Server) { err := server.ListenAndServe() - if err != nil && err.Error() != "server closed" { + if err != nil && err != quic.ErrServerClosed { log.Errorln(errors.FullTrace(err)) } }