ignore server closed errors the right way
This commit is contained in:
parent
f5d30b1a6e
commit
c79634706b
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue