mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
unblock event loop for God.getVersion
This commit is contained in:
parent
8860ca20b8
commit
c9f0b6eba0
@ -680,6 +680,8 @@ module.exports = function(God) {
|
||||
* @return CallExpression
|
||||
*/
|
||||
God.getVersion = function(env, cb) {
|
||||
return cb(null, pkg.version);
|
||||
process.nextTick(function() {
|
||||
return cb(null, pkg.version);
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user