From d656fe467bf4e7f3f80a59a19a55ab52998f1a4e Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Thu, 30 Sep 2021 17:41:33 +0800 Subject: [PATCH] update --- core/test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/test.go b/core/test.go index 81298df..15da59f 100644 --- a/core/test.go +++ b/core/test.go @@ -11,12 +11,14 @@ import ( func init() { go func() { v := sillyGirl.Get("rebootInfo") + defer sillyGirl.Set("rebootInfo", "") if v != "" { vv := strings.Split(v, " ") tp, cd, ud := vv[0], Int(vv[1]), Int(vv[2]) if tp == "fake" && sillyGirl.GetBool("update_notify", false) == true { // time.Sleep(time.Second * 10) NotifyMasters("自动更新完成。") + return } msg := "重启完成。" @@ -34,7 +36,6 @@ func init() { } time.Sleep(time.Second) } - sillyGirl.Set("rebootInfo", "") } }() }