travis test

This commit is contained in:
jshkurti 2015-03-23 16:18:36 +01:00
parent 0b55ded600
commit 4dac7795c0

View File

@ -222,8 +222,7 @@ module.exports = function(God) {
God.killProcess(proc.process.pid, function(err) {
proc.pm2_env.status = cst.STOPPED_STATUS;
if (err && err.type && err.type === 'timeout'
&& proc.pm2_env.exec_mode != 'cluster_mode') {
if (err && err.type && err.type === 'timeout') {
proc.removeAllListeners && proc.removeAllListeners();
}
pidusage.unmonitor(proc.process.pid);