🎨 Improve kernel stability by eliminating some data races https://github.com/siyuan-note/siyuan/issues/9842

This commit is contained in:
Daniel 2023-12-08 21:46:46 +08:00
parent f9d476ebf5
commit 1d54de679f
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
7 changed files with 83 additions and 62 deletions

View file

@ -387,7 +387,7 @@ func performSync(c *gin.Context) {
mobileSwitch = mobileSwitchArg.(bool)
}
if mobileSwitch {
if nil == model.Conf.User || !model.Conf.Sync.Enabled {
if nil == model.Conf.GetUser() || !model.Conf.Sync.Enabled {
return
}
}