mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-10 22:52:34 +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
|
|
@ -739,7 +739,7 @@ func connectSyncWebSocket() {
|
|||
reconnected := false
|
||||
for retries := 0; retries < 7; retries++ {
|
||||
time.Sleep(7 * time.Second)
|
||||
if nil == Conf.User {
|
||||
if nil == Conf.GetUser() {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -794,7 +794,7 @@ func dialSyncWebSocket() (c *websocket.Conn, err error) {
|
|||
endpoint := util.GetCloudWebSocketServer() + "/apis/siyuan/dejavu/ws"
|
||||
header := http.Header{
|
||||
"User-Agent": []string{util.UserAgent},
|
||||
"x-siyuan-uid": []string{Conf.User.UserId},
|
||||
"x-siyuan-uid": []string{Conf.GetUser().UserId},
|
||||
"x-siyuan-kernel": []string{KernelID},
|
||||
"x-siyuan-ver": []string{util.Ver},
|
||||
"x-siyuan-os": []string{runtime.GOOS},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue