From 83999184e04b4f1cce2a9205400e92c7dcb84596 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Sun, 23 Oct 2022 19:51:57 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E9=80=80=E5=87=BA=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E6=97=B6=E6=95=B0=E6=8D=AE=E5=BA=93=E6=9C=AA=E5=AE=8C=E5=85=A8?= =?UTF-8?q?=E5=86=99=E5=85=A5=20https://github.com/siyuan-note/siyuan/issu?= =?UTF-8?q?es/6318?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/conf.go | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/kernel/model/conf.go b/kernel/model/conf.go index 72f69d984..e489ca151 100644 --- a/kernel/model/conf.go +++ b/kernel/model/conf.go @@ -361,18 +361,9 @@ func Close(force bool, execInstallPkg int) (exitCode int) { defer exitLock.Unlock() logging.LogInfof("exiting kernel [force=%v, execInstallPkg=%d]", force, execInstallPkg) - util.PushMsg(Conf.Language(95), 10000*60) + WaitForWritingFiles() - wg := sync.WaitGroup{} - go func() { - wg.Add(1) - time.Sleep(util.FrontendQueueInterval + 50*time.Millisecond) - WaitForWritingFiles() - time.Sleep(50 * time.Millisecond) - sql.WaitForWritingDatabase() - wg.Done() - }() if !force { SyncData(false, true, false) if 0 != ExitSyncSucc { @@ -380,7 +371,6 @@ func Close(force bool, execInstallPkg int) (exitCode int) { return } } - wg.Wait() //util.UIProcessIDs.Range(func(key, _ interface{}) bool { // pid := key.(string)