Memory Leak Bug Fixed
This commit is contained in:
1 parent
363ce4d302
commit
e96ce4e484
2 files changed
+22
-3
No files matched your search
@@ -12,10 +12,11 @@
|
||||
|
||||
const ONE_DAY_IN_MILISECONDS = 24 * 60 * 60 * 1000;
|
||||
|
||||
const commons = COMMONS.newCommons(bot, logger, UTILITIES);
|
||||
let commons = COMMONS.newCommons(bot, logger, UTILITIES);
|
||||
|
||||
thisObject = {
|
||||
initialize: initialize,
|
||||
finalize: finalize,
|
||||
start: start
|
||||
};
|
||||
|
||||
@@ -44,6 +45,14 @@
|
||||
}
|
||||
}
|
||||
|
||||
function finalize() {
|
||||
commons.finalize()
|
||||
commons = undefined
|
||||
utilities = undefined
|
||||
assistant = undefined
|
||||
thisObject = undefined
|
||||
}
|
||||
|
||||
function start(multiPeriodDataFiles, timePeriod, timePeriodLabel, currentDay, startDate, endDate, interExecutionMemory, callBackFunction) {
|
||||
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user