mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
🐛 退出应用时数据库未完全写入 https://github.com/siyuan-note/siyuan/issues/6318
This commit is contained in:
parent
6dde2b15a0
commit
d092b9c9d8
1 changed files with 0 additions and 1 deletions
|
|
@ -367,7 +367,6 @@ func Close(force bool, execInstallPkg int) (exitCode int) {
|
||||||
wg := sync.WaitGroup{}
|
wg := sync.WaitGroup{}
|
||||||
go func() {
|
go func() {
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
time.Sleep(util.FrontendQueueInterval * 2)
|
|
||||||
WaitForWritingFiles()
|
WaitForWritingFiles()
|
||||||
time.Sleep(50 * time.Millisecond)
|
time.Sleep(50 * time.Millisecond)
|
||||||
sql.WaitForWritingDatabase()
|
sql.WaitForWritingDatabase()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue