Added check for if daemons config is not array

This commit is contained in:
Matt 2014-04-08 11:41:50 -06:00
parent 86a4c05429
commit a9208a39d3

View File

@ -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;
}