Avoid panic on QUIC server close (fixes #1805)

This commit is contained in:
Matthew Holt 2017-08-03 11:20:14 -06:00
parent d3e5f9d456
commit a7ed0cf69e
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5

View file

@ -305,7 +305,7 @@ func (s *Server) Serve(ln net.Listener) error {
} }
err := s.Server.Serve(ln) err := s.Server.Serve(ln)
if QUIC { if s.quicServer != nil {
s.quicServer.Close() s.quicServer.Close()
} }
return err return err