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

Reduce poll rate for servers that have stopped responding to RCON requests.

Actually fixed the extra chat lines on disconnect.
This commit is contained in:
RaidMax
2017-06-12 07:28:08 -05:00
parent 25b3e3abc1
commit 7a81f6c2bd
5 changed files with 28 additions and 17 deletions

View File

@ -69,7 +69,7 @@ namespace SharedLibrary.Network
return SplitResponse;
}
catch (SocketException)
catch (Exception)
{
attempts++;
if (attempts > 5)
@ -131,7 +131,6 @@ namespace SharedLibrary.Network
static byte[] GetRequestBytes(string Request)
{
Byte[] initialRequestBytes = Encoding.Unicode.GetBytes(Request);
Byte[] fixedRequest = new Byte[initialRequestBytes.Length / 2];