From 48918f7010cb091204afbde91942dd18ad5c5b90 Mon Sep 17 00:00:00 2001 From: Nuintun Date: Thu, 25 Aug 2016 11:03:09 +0800 Subject: [PATCH] Update thread-kill.js --- bin/thread-kill.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/thread-kill.js b/bin/thread-kill.js index cd0834d..3da7582 100644 --- a/bin/thread-kill.js +++ b/bin/thread-kill.js @@ -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();