mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-05 16:28:49 +01:00
🎨 Improve exit
This commit is contained in:
parent
da49828a21
commit
5906a29394
1 changed files with 2 additions and 2 deletions
|
|
@ -519,11 +519,11 @@ func Close(force bool, execInstallPkg int) (exitCode int) {
|
|||
// 这里多等待一段时间,等待安装程序启动
|
||||
time.Sleep(4 * time.Second)
|
||||
}
|
||||
logging.LogInfof("exited kernel")
|
||||
closeSyncWebSocket()
|
||||
util.WebSocketServer.Close()
|
||||
go func() {
|
||||
time.Sleep(500 * time.Millisecond)
|
||||
logging.LogInfof("exited kernel")
|
||||
util.WebSocketServer.Close()
|
||||
os.Exit(logging.ExitCodeOk)
|
||||
}()
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue