mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
fix: process map promise return
This commit is contained in:
parent
66a8170fd2
commit
f2714bd0ab
1 changed files with 4 additions and 1 deletions
|
@ -104,7 +104,10 @@ const getSystemProcessMap = async () => {
|
||||||
if (process.platform === "linux") {
|
if (process.platform === "linux") {
|
||||||
await new Promise((res) => {
|
await new Promise((res) => {
|
||||||
exec(commands.findWineExecutables(), (err, out) => {
|
exec(commands.findWineExecutables(), (err, out) => {
|
||||||
if (err) res(null);
|
if (err) {
|
||||||
|
res(null);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const pathSet = new Set(
|
const pathSet = new Set(
|
||||||
out
|
out
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue