Skip to content

Commit

Permalink
feat: force exit app #251
Browse files Browse the repository at this point in the history
  • Loading branch information
caoxiemeihao committed Sep 18, 2024
1 parent 927885d commit 20fad66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ function killTree(tree: PidTree) {
}
}

try {
process.kill(tree.pid) // #214
try { // #214
process.kill(tree.pid, 'SIGKILL') // #251
} catch { /* empty */ }
}

0 comments on commit 20fad66

Please sign in to comment.