From bc98f7c55e45d8a86160c2d5ddeb3ff94dd80413 Mon Sep 17 00:00:00 2001 From: JackEnx <167036558+JackEnx@users.noreply.github.com> Date: Wed, 18 Dec 2024 13:02:13 -0300 Subject: [PATCH] fix: closed game pestis in the watch processes --- src/main/services/process-watcher.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/services/process-watcher.ts b/src/main/services/process-watcher.ts index abce6ae4..b95b93cf 100644 --- a/src/main/services/process-watcher.ts +++ b/src/main/services/process-watcher.ts @@ -164,11 +164,7 @@ export const watchProcesses = async () => { ) .toLowerCase(); - const processSet = processMap.get(executable); - - if (!processSet) continue; - - const hasProcess = processSet.has(executablePath); + const hasProcess = processMap.get(executable)?.has(executablePath); if (hasProcess) { if (gamesPlaytime.has(game.id)) {