From 668a845be0b7e67c738e4f5715b0762d51215e9b Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Tue, 25 Oct 2022 11:19:42 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=A1=8C=E9=9D=A2=E7=AB=AF=E5=86=85?= =?UTF-8?q?=E6=A0=B8=E8=BF=9B=E7=A8=8B=E4=BD=BF=E7=94=A8=E9=9A=8F=E6=9C=BA?= =?UTF-8?q?=E7=AB=AF=E5=8F=A3=20https://github.com/siyuan-note/siyuan/issu?= =?UTF-8?q?es/4952?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/electron/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/electron/main.js b/app/electron/main.js index 442af3d80..7777ff20c 100644 --- a/app/electron/main.js +++ b/app/electron/main.js @@ -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)