Added pool.start() so log event can be hooked in time for initialization
This commit is contained in:
parent
1205706ca0
commit
524e366dba
13
lib/pool.js
13
lib/pool.js
@ -33,14 +33,11 @@ var pool = module.exports = function pool(options, authorizeFn){
|
|||||||
var emitWarningLog = function(key, text) { _this.emit('log', 'warning', key, text); };
|
var emitWarningLog = function(key, text) { _this.emit('log', 'warning', key, text); };
|
||||||
var emitErrorLog = function(key, text) { _this.emit('log', 'error' , key, text); };
|
var emitErrorLog = function(key, text) { _this.emit('log', 'error' , key, text); };
|
||||||
|
|
||||||
(function Init(){
|
this.start = function(){
|
||||||
//timeout used so onLog event can be hooked before we start initializing
|
SetupJobManager();
|
||||||
setTimeout(function(){
|
SetupVarDiff();
|
||||||
SetupJobManager();
|
SetupDaemonInterface();
|
||||||
SetupVarDiff();
|
};
|
||||||
SetupDaemonInterface();
|
|
||||||
}, 10);
|
|
||||||
})();
|
|
||||||
|
|
||||||
|
|
||||||
function SetupVarDiff(){
|
function SetupVarDiff(){
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user