mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 16:10:12 +01:00
🎨 Improve kernel exit
This commit is contained in:
parent
0acda592dc
commit
7d3be24347
1 changed files with 1 additions and 0 deletions
|
|
@ -687,6 +687,7 @@ func Close(force, setCurrentWorkspace bool, execInstallPkg int) (exitCode int) {
|
||||||
time.Sleep(500 * time.Millisecond)
|
time.Sleep(500 * time.Millisecond)
|
||||||
logging.LogInfof("exited kernel")
|
logging.LogInfof("exited kernel")
|
||||||
util.WebSocketServer.Close()
|
util.WebSocketServer.Close()
|
||||||
|
util.HttpServing = false
|
||||||
os.Exit(logging.ExitCodeOk)
|
os.Exit(logging.ExitCodeOk)
|
||||||
}()
|
}()
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue