fix 5022: Miss assiging ln to graceful Server (#5028)

This commit is contained in:
Ming Deng
2022-07-28 22:53:00 +08:00
committed by GitHub
parent 080f4e1a56
commit ab5a13f02a
3 changed files with 3 additions and 0 deletions

View File

@@ -38,6 +38,7 @@ func (srv *Server) Serve() (err error) {
}
func (srv *Server) ServeWithListener(ln net.Listener) (err error) {
srv.ln = ln
go srv.handleSignals()
return srv.internalServe(ln)
}