Added check for if daemons config is not array
This commit is contained in:
parent
86a4c05429
commit
a9208a39d3
@ -306,7 +306,7 @@ var pool = module.exports = function pool(options, authorizeFn){
|
|||||||
|
|
||||||
function SetupDaemonInterface(finishedCallback){
|
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');
|
emitErrorLog('No daemons have been configured - pool cannot start');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user