From dacad9b9cc788569de507107fe69d4fea427a0e5 Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Mon, 27 Mar 2023 00:49:32 +0800 Subject: [PATCH] chore: skip restart when update error --- hub/route/upgrade.go | 1 + 1 file changed, 1 insertion(+) diff --git a/hub/route/upgrade.go b/hub/route/upgrade.go index a4a8e683..b60d60d4 100644 --- a/hub/route/upgrade.go +++ b/hub/route/upgrade.go @@ -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()