1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 07:13:58 -05:00

curtail lost connection messages from RCon

verify still compatible with T6
fix potential null reference exception during configuration reading/setup
This commit is contained in:
RaidMax
2018-10-10 19:22:08 -05:00
parent 72a3ae65d5
commit aa8005bba6
9 changed files with 16 additions and 25 deletions

View File

@ -109,17 +109,17 @@ namespace SharedLibraryCore.RCon
connectionState.ConnectionAttempts = 0;
}
catch (Exception ex)
catch/* (Exception ex)*/
{
if (connectionState.ConnectionAttempts < StaticHelpers.AllowedConnectionFails)
{
Log.WriteWarning($"{Utilities.CurrentLocalization.LocalizationIndex["SERVER_ERROR_COMMUNICATION"]} [{this.Endpoint}] ({connectionState.ConnectionAttempts}/{StaticHelpers.AllowedConnectionFails})");
// Log.WriteWarning($"{Utilities.CurrentLocalization.LocalizationIndex["SERVER_ERROR_COMMUNICATION"]} [{this.Endpoint}] ({connectionState.ConnectionAttempts}/{StaticHelpers.AllowedConnectionFails})");
await Task.Delay(StaticHelpers.FloodProtectionInterval);
goto retrySend;
}
connectionState.OnComplete.Release(1);
Log.WriteDebug(ex.GetExceptionInfo());
//Log.WriteDebug(ex.GetExceptionInfo());
throw new NetworkException($"{Utilities.CurrentLocalization.LocalizationIndex["SERVER_ERROR_COMMUNICATION"]} [{this.Endpoint}]");
}