fix: closed game pestis in the watch processes

This commit is contained in:
JackEnx 2024-12-18 13:02:13 -03:00
parent e2d16ba63e
commit bc98f7c55e

View File

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