mirror of
https://github.com/nuintun/command-manager.git
synced 2026-10-25 17:36:31 +08:00
Update thread-kill.js
This commit is contained in:
1 parent
21b0829cdc
commit
48918f7010
1 file changed
+1
-1
+1
-1
@@ -101,7 +101,7 @@ function buildProcessTree(parentPid, tree, pidsToProcess, spawnChildProcessesLis
|
||||
var onClose = function (code){
|
||||
delete pidsToProcess[parentPid];
|
||||
|
||||
if (code != 0) {
|
||||
if (code !== 0) {
|
||||
// no more parent processes
|
||||
if (Object.keys(pidsToProcess).length == 0) {
|
||||
callback();
|
||||
|
||||
Reference in new issue
Block a user