[🛠️ 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 = () => { aikariWs.onopen = () => {
failedCounter = 0;
isErrorOccurred = false;
callback(true, aikariWs); callback(true, aikariWs);
}; };

View File

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