From a9208a39d341527b421c61c444266911e55081cb Mon Sep 17 00:00:00 2001 From: Matt Date: Tue, 8 Apr 2014 11:41:50 -0600 Subject: [PATCH] Added check for if daemons config is not array --- lib/pool.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pool.js b/lib/pool.js index ce52a01..ca3398e 100644 --- a/lib/pool.js +++ b/lib/pool.js @@ -306,7 +306,7 @@ var pool = module.exports = function pool(options, authorizeFn){ function SetupDaemonInterface(finishedCallback){ - if (options.daemons.length < 1){ + if (!Array.isArray(options.daemons) || options.daemons.length < 1){ emitErrorLog('No daemons have been configured - pool cannot start'); return; }