mirror of
https://github.com/HugoAura/Seewo-HugoAura.git
synced 2026-06-20 23:14:28 +08:00
[🛠️ Fix] Unexpected infinite reconn for ACM
This commit is contained in:
@@ -135,8 +135,6 @@
|
|||||||
);
|
);
|
||||||
|
|
||||||
aikariWs.onopen = () => {
|
aikariWs.onopen = () => {
|
||||||
failedCounter = 0;
|
|
||||||
isErrorOccurred = false;
|
|
||||||
callback(true, aikariWs);
|
callback(true, aikariWs);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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`
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user