From 36e09e497fad5e31c1f32581b2e3ac79eaf2379b Mon Sep 17 00:00:00 2001 From: Matt Date: Tue, 8 Apr 2014 11:41:40 -0600 Subject: [PATCH] Added check for if daemons config is not array --- init.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.js b/init.js index 1694313..9929c20 100644 --- a/init.js +++ b/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]; }