Revert "Probe and reconnect to existing hooks"
This reverts commit f04ec3ec36.
This commit is contained in:
1 parent
f04ec3ec36
commit
69b8dd7165
1 file changed
-10
@@ -47,16 +47,6 @@ export class HookManager {
|
|||||||
state.path = proc.path;
|
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 seen = new Set(processes.map(proc => proc.pid));
|
||||||
const result: HookProcessInfo[] = [];
|
const result: HookProcessInfo[] = [];
|
||||||
for (const proc of processes) {
|
for (const proc of processes) {
|
||||||
|
|||||||
Reference in new issue
Block a user