mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🎨 Clean code
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
dc7685a262
commit
7ebf3e4c7a
1 changed files with 3 additions and 1 deletions
|
|
@ -693,7 +693,9 @@ func Close(force, setCurrentWorkspace bool, execInstallPkg int) (exitCode int) {
|
|||
go func() {
|
||||
time.Sleep(500 * time.Millisecond)
|
||||
logging.LogInfof("exited kernel")
|
||||
util.WebSocketServer.Close()
|
||||
if nil != util.WebSocketServer {
|
||||
util.WebSocketServer.Close()
|
||||
}
|
||||
util.HttpServing = false
|
||||
os.Exit(logging.ExitCodeOk)
|
||||
}()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue