mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-23 16:56:10 +01:00
🎨 Data synchronization supports the multi-kernel online perception https://github.com/siyuan-note/siyuan/issues/8518
This commit is contained in:
parent
5cad47203a
commit
9916211477
2 changed files with 83 additions and 14 deletions
|
|
@ -469,7 +469,7 @@ func Close(force bool, execInstallPkg int) (exitCode int) {
|
|||
if !force {
|
||||
if Conf.Sync.Enabled && 3 != Conf.Sync.Mode &&
|
||||
((IsSubscriber() && conf.ProviderSiYuan == Conf.Sync.Provider) || conf.ProviderSiYuan != Conf.Sync.Provider) {
|
||||
syncData(true, false)
|
||||
syncData(true, false, false)
|
||||
if 0 != ExitSyncSucc {
|
||||
exitCode = 1
|
||||
return
|
||||
|
|
@ -509,6 +509,7 @@ func Close(force bool, execInstallPkg int) (exitCode int) {
|
|||
time.Sleep(4 * time.Second)
|
||||
}
|
||||
logging.LogInfof("exited kernel")
|
||||
webSocketConn.Close()
|
||||
util.WebSocketServer.Close()
|
||||
go func() {
|
||||
time.Sleep(500 * time.Millisecond)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue