🎨 桌面端内核进程使用随机端口 https://github.com/siyuan-note/siyuan/issues/4952
This commit is contained in:
parent
8ef77ab082
commit
60906df6f2
1 changed files with 4 additions and 0 deletions
|
@ -603,6 +603,10 @@ const initKernel = (initData) => {
|
|||
}
|
||||
|
||||
const getKernelPort = async () => {
|
||||
if (isDevEnv) {
|
||||
return kernelPort
|
||||
}
|
||||
|
||||
await sleep(200)
|
||||
let gotPort = false
|
||||
let count = 0
|
||||
|
|
Loading…
Add table
Reference in a new issue