Update paymentProcessor.js

BugFix `result.result[i]` can be undefined in RPC response errors.
This commit is contained in:
hellcatz 2017-07-19 18:41:18 -07:00 committed by GitHub
parent b16990e18a
commit d8dd19ff8b
1 changed files with 1 additions and 1 deletions

View File

@ -476,7 +476,7 @@ function SetupForPool(logger, poolOptions, setupFinished){
}
// check result execution_secs vs pool_config
results.forEach(function(result, i) {
if (parseFloat(result.result[i].execution_secs || 0) > shielding_interval) {
if (result.result[i] && parseFloat(result.result[i].execution_secs || 0) > shielding_interval) {
logger.warning(logSystem, logComponent, 'Warning, walletInverval shorter than opid execution time of '+result.result[i].execution_secs+' secs.');
}
});