Added check for if daemons config is not array

This commit is contained in:
Matt 2014-04-08 11:41:40 -06:00
parent c1caaf94e1
commit 36e09e497f
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ var spawnPoolWorkers = function(portalConfig, poolConfigs){
delete poolConfigs[coin];
}
if (p.daemons.length < 1){
if (!Array.isArray(p.daemons) || p.daemons.length < 1){
logger.error('Master', coin, 'No daemons configured so a pool cannot be started for this coin.');
delete poolConfigs[coin];
}