Skip to content

Commit 3a58beb

Browse files
committed
fix windows treekil
1 parent d473077 commit 3a58beb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/God/Methods.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ module.exports = function(God) {
246246
}
247247
else {
248248
treekill(parseInt(pid), cst.KILL_SIGNAL, function(err, killedPids) {
249-
if (killedPids && killedPids.length > 0)
249+
if (Array.isArray(killedPids) && killedPids.length > 0)
250250
pm2_env._tree_pids = killedPids;
251251
return God.processIsDead(pid, pm2_env, cb);
252252
});

0 commit comments

Comments
 (0)