apparently the normal check doesn't work

This commit is contained in:
Alex Grintsvayg 2020-10-28 15:15:35 -04:00
parent 124d4065c2
commit 070c378dfd
No known key found for this signature in database
GPG key ID: AEB3F089F86A22B5

View file

@ -164,7 +164,7 @@ func generateTLSConfig() *tls.Config {
func (s *Server) listenAndServe(server *http3.Server) {
err := server.ListenAndServe()
if err != nil && !errors.Is(err, http.ErrServerClosed) {
if err != nil && err.Error() != "server closed" {
log.Errorln(errors.FullTrace(err))
}
}