mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 Improve kernel stability by eliminating some data races https://github.com/siyuan-note/siyuan/issues/9842
This commit is contained in:
parent
8c5c62670e
commit
bea32e96d5
17 changed files with 158 additions and 117 deletions
|
|
@ -82,11 +82,9 @@ func checkDownloadInstallPkg() {
|
|||
return
|
||||
}
|
||||
|
||||
if gulu.IsMutexLocked(&checkDownloadInstallPkgLock) {
|
||||
if !checkDownloadInstallPkgLock.TryLock() {
|
||||
return
|
||||
}
|
||||
|
||||
checkDownloadInstallPkgLock.Lock()
|
||||
defer checkDownloadInstallPkgLock.Unlock()
|
||||
|
||||
downloadPkgURLs, checksum, err := getUpdatePkg()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue