Bug Fixed. Error displaying at when Tasks are shut down

This commit is contained in:
Luis Fernando Molina committed 2021-01-18 18:27:23 +01:00
1 parent 001f0baa26
commit b51fa61c4a
1 file changed
+7 -5
@@ -45,11 +45,13 @@ exports.newSuperalgosFunctionLibrariesNodeJSFunctions = function () {
}
}
TS.projects.superalgos.functionLibraries.taskFunctions.taskError(
undefined,
uiError,
docs
)
if (TS.projects.superalgos.globals.taskVariables.FATAL_ERROR_MESSAGE || TS.projects.superalgos.globals.taskVariables.UNEXPECTED_ERROR) {
TS.projects.superalgos.functionLibraries.taskFunctions.taskError(
undefined,
uiError,
docs
)
}
if (isNodeJsProcessShuttingDown === true) { return }
isNodeJsProcessShuttingDown = true