Skip to content

Commit

Permalink
Avoid panic on QUIC server close (fixes caddyserver#1805)
Browse files Browse the repository at this point in the history
  • Loading branch information
mholt committed Aug 3, 2017
1 parent d3e5f9d commit a7ed0cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion caddyhttp/httpserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a7ed0cf

Please sign in to comment.