Memory Leak Bug Fixed

This commit is contained in:
Luis Fernando Molina committed 2019-09-17 19:29:00 +02:00
1 parent 6130b2473a
commit 26f53b0ab9
5 files changed
+45 -1

No files matched your search

+2
View File
@@ -672,6 +672,8 @@
try {
if (FULL_LOG === true) { logger.write(MODULE_NAME, "[INFO] run -> loop -> startProcessFramework -> onFinished -> Entering function."); }
processFramework.finalize()
processFramework = undefined
switch (err.result) {
case global.DEFAULT_OK_RESPONSE.result: {
+15 -1
View File
@@ -8,6 +8,7 @@
thisObject = {
initialize: initialize,
finalize: finalize,
start: start
};
@@ -68,6 +69,19 @@
}
}
function finalize() {
storages = undefined
dataFiles = undefined
multiPeriodDataFiles = undefined
statusDependencies = undefined
dataDependencies = undefined
usertBot.finalize()
usertBot = undefined
fileStorage = undefined
processConfig = undefined
thisObject = undefined
}
function start(callBackFunction) {
try {
@@ -855,7 +869,7 @@
try {
if (FULL_LOG === true) { logger.write(MODULE_NAME, "[INFO] start -> processTimePeriodsDailyFiles -> callTheBot -> Entering function."); }
usertBot.start(
multiPeriodDataFiles,
currentTimePeriod,
+12
View File
@@ -8,6 +8,7 @@
thisObject = {
initialize: initialize,
finalize: finalize,
start: start
};
@@ -67,6 +68,17 @@
}
}
function finalize() {
storages = undefined
dataFiles = undefined
statusDependencies = undefined
dataDependencies = undefined
usertBot = undefined
fileStorage = undefined
processConfig = undefined
thisObject = undefined
}
function start(callBackFunction) {
try {
+12
View File
@@ -6,6 +6,7 @@
thisObject = {
initialize: initialize,
finalize: finalize,
start: start
};
@@ -65,6 +66,17 @@
}
}
function finalize() {
storages = undefined
dataFiles = undefined
statusDependencies = undefined
dataDependencies = undefined
usertBot = undefined
fileStorage = undefined
processConfig = undefined
thisObject = undefined
}
function start(callBackFunction) {
try {
+4
View File
@@ -140,6 +140,7 @@
}
}
}
bot.multiPeriodDailyProcessDatetime = processConfig.framework.startDate.fixedDate
}
function startLiveTrading(message) {
@@ -150,6 +151,7 @@
bot.startMode = "Live"
processConfig.framework.startDate.fixedDate = new Date()
processConfig.framework.startDate.resumeExecution = false;
bot.multiPeriodDailyProcessDatetime = processConfig.framework.startDate.fixedDate
global.STOP_PROCESSING = false
bot.hasTheBotJustStarted = true
}
@@ -742,6 +744,8 @@
try {
if (FULL_LOG === true) { logger.write(MODULE_NAME, "[INFO] run -> loop -> startProcessFramework -> onFinished -> Entering function."); }
processFramework.finalize()
processFramework = undefined
switch (err.result) {
case global.DEFAULT_OK_RESPONSE.result: {