mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 01:50: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
d6128d9af5
commit
8c4adbc48a
2 changed files with 22 additions and 0 deletions
|
|
@ -17,6 +17,8 @@ import (
|
|||
)
|
||||
|
||||
func OCRAssetsJob() {
|
||||
util.WaitForTesseractInit()
|
||||
|
||||
if !util.TesseractEnabled {
|
||||
return
|
||||
}
|
||||
|
|
@ -25,6 +27,10 @@ func OCRAssetsJob() {
|
|||
}
|
||||
|
||||
func autoOCRAssets() {
|
||||
if !util.TesseractEnabled {
|
||||
return
|
||||
}
|
||||
|
||||
defer logging.Recover()
|
||||
|
||||
assetsPath := util.GetDataAssetsAbsPath()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue