Revert "Probe and reconnect to existing hooks"

This reverts commit f04ec3ec36.
This commit is contained in:
手瓜一十雪 committed 2026-05-03 16:51:07 +08:00
1 parent f04ec3ec36
commit 69b8dd7165
1 file changed
-10
-10
View File
@@ -47,16 +47,6 @@ export class HookManager {
state.path = proc.path;
}
// Probe every freshly-enumerated PID in parallel to detect hooks left over
// from a previous SnowLuma run. Positive hits are reconnected immediately
// so the login-state snapshot can update the UI without a manual load.
await Promise.all(
processes
.map(proc => this.states.get(proc.pid)!)
.filter(state => !state.injected && !this.loadTasks.has(state.pid))
.map(state => this.probeAndSeed(state)),
);
const seen = new Set(processes.map(proc => proc.pid));
const result: HookProcessInfo[] = [];
for (const proc of processes) {