Stop Gracefully fixed

This commit is contained in:
Luis Fernando Molina committed 2018-03-09 10:49:33 +01:00
1 parent 806762adf7
commit 4b2a95a390
4 files changed
+41 -33

No files matched your search

+2 -1
View File
@@ -330,6 +330,7 @@
if (FULL_LOG === true) { logger.write("[INFO] run -> loopControl -> Stopping the Loop Gracefully. See you next time! :-)"); }
callBackFunction(global.DEFAULT_OK_RESPONSE);
return;
}
@@ -357,7 +358,7 @@
try {
vmConfig = JSON.parse(fs.readFileSync('this.vm.config.json', 'utf8'));
return vmConfig.stopGrafully;
return JSON.parse(vmConfig.stopGrafully);
}
catch (err) {
const logText = "[ERROR] 'readConfig' - ERROR : " + err.message;