[🛠️ Fix] Unexpected infinite reconn for ACM

This commit is contained in:
Minoricew
2025-11-20 22:59:57 +08:00
parent 80354cc310
commit 8656fd0334
2 changed files with 2 additions and 4 deletions

View File

@@ -135,8 +135,6 @@
);
aikariWs.onopen = () => {
failedCounter = 0;
isErrorOccurred = false;
callback(true, aikariWs);
};

View File

@@ -329,14 +329,14 @@ if (!global.__HUGO_AURA_UI_REACTIVES__.subConfig)
if (!isHostNotInit) {
global.__HUGO_AURA_UI_FUNCTIONS__.subConfig.aikariStatus.updateToast(
"success",
"Aikari 已启动",
"Aikari 已启动, 将在 2 秒后尝试连接",
null,
true,
true,
2000
);
}
await global.__HUGO_AURA_GLOBAL__.utils.sleep(100);
await global.__HUGO_AURA_GLOBAL__.utils.sleep(2000);
await ipcRenderer.invoke(
`${IPC_METHOD_BASE}.retryAikariConnect`
);