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)) {