Update x intercettare (forse) errori in reset conf

This commit is contained in:
Samuele E. Locatelli
2020-01-31 16:13:31 +01:00
parent abb24b3685
commit 6f867f9f35
+9 -1
View File
@@ -1830,7 +1830,15 @@ namespace MapoDb
// verifico il timeout che cambia a seconda che sia vero o falso insEnabled...
int tOutShort = memLayer.ML.cdvi("TmOut.MS.S");
int tOutLong = memLayer.ML.cdvi("TmOut.MS.L");
int redDtMacTOut = (answ["insEnabled"].ToLower() == "true") ? tOutShort : tOutLong;
int redDtMacTOut = tOutLong;
try
{
redDtMacTOut = (answ["insEnabled"].ToLower() == "true") ? tOutShort : tOutLong;
}
catch(Exception exc)
{
logger.lg.scriviLog($"Eccezione in calcolo timeout dati macchina: idxMacchina{idxMacchina} | TShort: {tOutShort} | TLong {tOutLong}{Environment.NewLine}{exc}");
}
// salvo in redis!
memLayer.ML.redSaveHashDict(currHash, answ, redDtMacTOut);
return answ;