🎨 桌面端内核进程使用随机端口 https://github.com/siyuan-note/siyuan/issues/4952

This commit is contained in:
Liang Ding 2022-10-25 10:26:47 +08:00
parent 8ef77ab082
commit 60906df6f2
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -603,6 +603,10 @@ const initKernel = (initData) => {
}
const getKernelPort = async () => {
if (isDevEnv) {
return kernelPort
}
await sleep(200)
let gotPort = false
let count = 0