diff --git a/MP-IO/Web.config b/MP-IO/Web.config index 49d46252..8ec9221a 100644 --- a/MP-IO/Web.config +++ b/MP-IO/Web.config @@ -8,15 +8,15 @@ + + - - diff --git a/MapoDb/MapoDb.cs b/MapoDb/MapoDb.cs index ee275972..04323414 100644 --- a/MapoDb/MapoDb.cs +++ b/MapoDb/MapoDb.cs @@ -1163,17 +1163,20 @@ namespace MapoDb { try { - if (memLayer.ML.confReadBool("forceResetKeepAlive")) + if (memLayer.ML.CRB("resetConnKA")) { - taKeepAlive.Connection.Close(); - taKeepAlive.Connection.Open(); - } - else - { - if (taKeepAlive.Connection.State == ConnectionState.Closed) + if (memLayer.ML.CRB("forceResetKeepAlive")) { + taKeepAlive.Connection.Close(); taKeepAlive.Connection.Open(); } + else + { + if (taKeepAlive.Connection.State == ConnectionState.Closed) + { + taKeepAlive.Connection.Open(); + } + } } taKeepAlive.UpdateQueryNoStartTime(DateTime.Now, oraMacchina, IdxMacchina); }