1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-13 03:20:40 +00:00

fix graceful bug

This commit is contained in:
liminggui
2020-06-05 18:27:05 +08:00
parent 3e30f37172
commit 8e29300f85
2 changed files with 3 additions and 4 deletions

View File

@ -180,7 +180,7 @@ func (srv *Server) ListenAndServeMutualTLS(certFile, keyFile, trustFile string)
log.Println(err)
return err
}
err = process.Kill()
err = process.Signal(syscall.SIGTERM)
if err != nil {
return err
}