mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -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:
@ -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];
|
||||
|
||||
|
@ -171,12 +171,6 @@ namespace SharedLibrary
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Set up the basic variables ( base path / hostname / etc ) that allow the monitor thread to work
|
||||
/// </summary>
|
||||
/// <returns>True if no issues initializing, false otherwise</returns>
|
||||
//abstract public bool intializeBasics();
|
||||
|
||||
/// <summary>
|
||||
/// Process any server event
|
||||
/// </summary>
|
||||
@ -422,6 +416,9 @@ namespace SharedLibrary
|
||||
public List<Chat> ChatHistory;
|
||||
public Queue<PlayerHistory> playerHistory { get; private set; }
|
||||
|
||||
protected int ConnectionErrors;
|
||||
protected DateTime LastPoll;
|
||||
|
||||
//Info
|
||||
protected String IP;
|
||||
protected int Port;
|
||||
|
Reference in New Issue
Block a user