Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

fix(device-link): cancel stale reopen queue on local close

DavidShen5284afcafbe4
diff --git a/apps/desktop/src/main/device-link/index.ts b/apps/desktop/src/main/device-link/index.ts
index e8870d0fba..813173789f 100644
--- a/apps/desktop/src/main/device-link/index.ts
+++ b/apps/desktop/src/main/device-link/index.ts
@@ -1169,6 +1169,7 @@ export function closeRemoteLink(deviceId: string): void {
// 本地主动断开同样必须终止重开循环:否则用户刚点断开,退避重试又把
// 链路建回来。
transportTimeoutReopen.cancel(deviceId);
+ cancelPendingPeerLinkReopen(deviceId);
openLinkInFlight.delete(deviceId);
client?.closeLink(deviceId, 'user');
}