From e60ca7504af218346a8f15f339934f876a7cd240 Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Mon, 20 Sep 2021 19:31:48 +0800 Subject: [PATCH] update --- core/test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/test.go b/core/test.go index b6dd898..3e3819e 100644 --- a/core/test.go +++ b/core/test.go @@ -92,7 +92,10 @@ func initSys() { s.Reply("编译程序完毕。", E) sillyGirl.Set("rebootInfo", fmt.Sprintf("%v %v %v", s.GetImType(), s.GetChatID(), s.GetUserID())) s.Reply("更新完成,即将重启!", E) - Daemon() + go func() { + time.Sleep(time.Second) + Daemon() + }() return nil }, },