mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +01:00
🎨 桌面端内核进程使用随机端口 https://github.com/siyuan-note/siyuan/issues/4952
This commit is contained in:
parent
2832c40687
commit
668a845be0
1 changed files with 3 additions and 3 deletions
|
|
@ -630,7 +630,7 @@ const initKernel = (initData) => {
|
|||
await sleep(100)
|
||||
} finally {
|
||||
count++
|
||||
if (64 < count) {
|
||||
if (32 < count) {
|
||||
writeLog('get kernel port failed [pid=' + kernelProcessPid + ']')
|
||||
bootWindow.destroy()
|
||||
resolve(false)
|
||||
|
|
@ -656,10 +656,10 @@ const initKernel = (initData) => {
|
|||
bootWindow.show()
|
||||
} catch (e) {
|
||||
writeLog('get kernel version failed: ' + e.message)
|
||||
await sleep(200)
|
||||
await sleep(100)
|
||||
} finally {
|
||||
count++
|
||||
if (64 < count) {
|
||||
if (14 < count) {
|
||||
writeLog('get kernel ver failed')
|
||||
bootWindow.destroy()
|
||||
resolve(false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue