fix: filter out undefined proc pids
This commit is contained in:
parent
361859f374
commit
dc4d05a2d9
@ -47,7 +47,7 @@ async function findPid() {
|
|||||||
const pids = []
|
const pids = []
|
||||||
|
|
||||||
for (const result of results) {
|
for (const result of results) {
|
||||||
if (result.status === 'fulfilled') {
|
if (result.status === 'fulfilled' && result.value) {
|
||||||
pids.push(result.value)
|
pids.push(result.value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user