Commit a7ed0cf6 authored by Matthew Holt's avatar Matthew Holt

Avoid panic on QUIC server close (fixes #1805)

parent d3e5f9d4
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment