Bug, array not being cleanned.

This commit is contained in:
Luis Fernando Molina committed 2019-03-16 16:01:42 +01:00
1 parent 07144f0385
commit 882bfe9139
1 file changed
+5 -3
+5 -3
View File
@@ -117,6 +117,8 @@
const timePeriod = global.marketFilesPeriods[n][1];
let dependencyIndex = 0;
dataFiles = [];
dependencyLoopBody();
function dependencyLoopBody() {
@@ -158,8 +160,8 @@
return;
}
let marketFile = JSON.parse(text);
dataFiles.push(marketFile);
let dataFile = JSON.parse(text);
dataFiles.push(dataFile);
dependencyControlLoop();
@@ -216,7 +218,7 @@
const outputPeriod = global.marketFilesPeriods[n][0];
const timePeriod = global.marketFilesPeriods[n][1];
usertBot.start(dataFiles, outputPeriod, timePeriod, callBackFunction);
usertBot.start(dataFiles, outputPeriod, timePeriod, onBotFinished);
function onBotFinished(err) {