mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-26 15:13:00 -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:
@ -75,8 +75,8 @@ namespace IW4MAdmin
|
||||
|
||||
public IDisposable Connect(IDataConsumer channel)
|
||||
{
|
||||
channel.OnData(data, null);
|
||||
channel.OnEnd();
|
||||
channel?.OnData(data, null);
|
||||
channel?.OnEnd();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -95,7 +95,7 @@ namespace IW4MAdmin
|
||||
|
||||
public bool OnData(ArraySegment<byte> data, Action continuation)
|
||||
{
|
||||
buffer.Add(data);
|
||||
buffer?.Add(data);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user