chore: skip restart when update error

This commit is contained in:
gVisor bot 2023-03-27 00:49:32 +08:00
parent 583a568d57
commit dacad9b9cc

View file

@ -27,6 +27,7 @@ func upgrade(w http.ResponseWriter, r *http.Request) {
err := updater.Update()
if err != nil {
log.Errorln("err:%s", err)
return
}
execPath, err := os.Executable()