From f2714bd0aba1a8b8a0690e077f9832b72597f386 Mon Sep 17 00:00:00 2001 From: JackEnx <167036558+JackEnx@users.noreply.github.com> Date: Mon, 16 Dec 2024 21:47:09 -0300 Subject: [PATCH] fix: process map promise return --- src/main/services/process-watcher.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/services/process-watcher.ts b/src/main/services/process-watcher.ts index 7c33ca0f..90373cea 100644 --- a/src/main/services/process-watcher.ts +++ b/src/main/services/process-watcher.ts @@ -104,7 +104,10 @@ const getSystemProcessMap = async () => { if (process.platform === "linux") { await new Promise((res) => { exec(commands.findWineExecutables(), (err, out) => { - if (err) res(null); + if (err) { + res(null); + return; + } const pathSet = new Set( out