Hole Fixing partially debugged

This commit is contained in:
Luis Fernando Molina committed 2018-03-20 12:50:34 +01:00
1 parent 24ceee1e94
commit 16851f4f63
7 files changed
+65 -19

No files matched your search

+11
View File
@@ -200,6 +200,12 @@
callBackFunction(global.DEFAULT_OK_RESPONSE);
return;
}
case "Too far in the future.": {
logger.write("[WARN] run -> loop -> startUserBot -> onFinished > Too far in the future. This Loop will enter in coma.");
nextWaitTime = 'Coma';
loopControl(nextWaitTime);
return;
}
default: {
logger.write("[ERROR] run -> loop -> startUserBot -> onFinished > Unhandled custom response received. -> err.message = " + err.message);
callBackFunction(err);
@@ -249,6 +255,11 @@
setTimeout(loop, processConfig.sleepWaitTime);
}
break;
case 'Coma': {
if (FULL_LOG === true) { logger.write("[INFO] run -> loopControl -> Restarting Loop in " + (processConfig.retryWaitTime / 3600000) + " hours."); }
setTimeout(loop, processConfig.comaWaitTime);
}
break;
}
}