mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-16 21:56:40 -05:00
Avoid panic on QUIC server close (fixes #1805)
This commit is contained in:
parent
d3e5f9d456
commit
a7ed0cf69e
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue