Memory Leak Bug Fixed

This commit is contained in:
Luis Fernando Molina committed 2019-09-17 19:28:53 +02:00
1 parent 363ce4d302
commit e96ce4e484
2 files changed
+22 -3

No files matched your search

+12 -2
View File
@@ -8,6 +8,7 @@
const GMT_SECONDS = ':00.000 GMT+0000';
let thisObject = {
finalize: finalize,
runSimulation: runSimulation,
buildPercentageBandwidthArray: buildPercentageBandwidthArray,
buildBollingerBandsArray: buildBollingerBandsArray,
@@ -28,6 +29,15 @@
return thisObject;
function finalize() {
percentageBandwidthAt = undefined
bollingerBandsAt = undefined
bollingerChannelsAt = undefined
bollingerSubChannelsAt = undefined
candlesAt = undefined
thisObject = undefined
}
async function runSimulation(
timePeriod,
timePeriodLabel,
@@ -2735,8 +2745,8 @@
i++
if (i < candles.length) {
// process.nextTick(loop)
setTimeout(loop, 100)
process.nextTick(loop)
//setTimeout(loop, 100)
} else {
afterLoop()
}