🐛 桌面端系统睡眠唤醒后内核可能会自动退出 Fix https://github.com/siyuan-note/siyuan/issues/7323
This commit is contained in:
parent
eaaeac6970
commit
d316e4abc3
1 changed files with 6 additions and 2 deletions
|
@ -105,7 +105,9 @@ func getAttachedUIProcCount() (ret int) {
|
|||
procName := strings.ToLower(proc.Executable())
|
||||
uiProcOk := false
|
||||
for _, name := range uiProcNames {
|
||||
uiProcOk = strings.Contains(procName, name)
|
||||
if uiProcOk = strings.Contains(procName, name); uiProcOk {
|
||||
break
|
||||
}
|
||||
}
|
||||
if uiProcOk {
|
||||
ret++
|
||||
|
@ -122,7 +124,9 @@ func getUIProcCount() (ret int) {
|
|||
procName := strings.ToLower(proc.Executable())
|
||||
uiProcOk := false
|
||||
for _, name := range uiProcNames {
|
||||
uiProcOk = strings.Contains(procName, name)
|
||||
if uiProcOk = strings.Contains(procName, name); uiProcOk {
|
||||
break
|
||||
}
|
||||
}
|
||||
if uiProcOk {
|
||||
ret++
|
||||
|
|
Loading…
Add table
Reference in a new issue