Added check for if daemons config is not array
This commit is contained in:
parent
c1caaf94e1
commit
36e09e497f
2
init.js
2
init.js
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue