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