mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-29 12:16:16 +08:00
Avoid panic on QUIC server close (fixes #1805)
This commit is contained in:
parent
d3e5f9d456
commit
a7ed0cf69e
|
@ -305,7 +305,7 @@ func (s *Server) Serve(ln net.Listener) error {
|
|||
}
|
||||
|
||||
err := s.Server.Serve(ln)
|
||||
if QUIC {
|
||||
if s.quicServer != nil {
|
||||
s.quicServer.Close()
|
||||
}
|
||||
return err
|
||||
|
|
Loading…
Reference in New Issue
Block a user