fix: filter out undefined proc pids
This commit is contained in:
parent
361859f374
commit
dc4d05a2d9
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ async function findPid() {
|
|||
const pids = []
|
||||
|
||||
for (const result of results) {
|
||||
if (result.status === 'fulfilled') {
|
||||
if (result.status === 'fulfilled' && result.value) {
|
||||
pids.push(result.value)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue