mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-01 22:38:49 +01:00
🎨 桌面端退出拉起更新安装时有时需要重启两次 Fix https://github.com/siyuan-note/siyuan/issues/6544
This commit is contained in:
parent
a2cc5ca0aa
commit
4b9fa8b339
8 changed files with 20 additions and 14 deletions
|
|
@ -429,12 +429,10 @@ func Close(force bool, execInstallPkg int) (exitCode int) {
|
|||
go func() {
|
||||
time.Sleep(500 * time.Millisecond)
|
||||
if waitSecondForExecInstallPkg {
|
||||
time.Sleep(2 * time.Second)
|
||||
if gulu.OS.IsWindows() {
|
||||
// Windows 端退出拉起更新安装时有时需要重启两次 https://github.com/siyuan-note/siyuan/issues/6467
|
||||
// 这里多等待一段时间,等待安装程序启动后时会在 NSIS 自定义脚本中 Kill SiYuan 进程,详见 install.nsh
|
||||
time.Sleep(5 * time.Second)
|
||||
}
|
||||
util.PushMsg(Conf.Language(130), 1000*5)
|
||||
// 桌面端退出拉起更新安装时有时需要重启两次 https://github.com/siyuan-note/siyuan/issues/6544
|
||||
// 这里多等待一段时间,等待安装程序启动
|
||||
time.Sleep(4 * time.Second)
|
||||
}
|
||||
logging.LogInfof("exited kernel")
|
||||
util.WebSocketServer.Close()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue