mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-11 01:34:20 +01:00
🎨 Improve kernel stability by eliminating some data races https://github.com/siyuan-note/siyuan/issues/9842
This commit is contained in:
parent
f9d476ebf5
commit
1d54de679f
7 changed files with 83 additions and 62 deletions
|
|
@ -452,7 +452,7 @@ func getCloudUser(c *gin.Context) {
|
|||
token = t.(string)
|
||||
}
|
||||
model.RefreshUser(token)
|
||||
ret.Data = model.Conf.User
|
||||
ret.Data = model.Conf.GetUser()
|
||||
}
|
||||
|
||||
func logoutCloudUser(c *gin.Context) {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue