1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-16 01:59:18 -05:00

fix parsing of certain chat messages

print out the correct exception message when a server is not responding.
prevent log reader from reading before the servers have initialized
This commit is contained in:
RaidMax
2018-07-04 21:09:42 -05:00
parent dd86087336
commit d4cc01e3ba
8 changed files with 173 additions and 111 deletions

View File

@ -29,11 +29,14 @@ namespace IW4MAdmin.Application.IO
{
while (!server.Manager.ShutdownRequested())
{
OnEvent(new EventState()
if ((server.Manager as ApplicationManager).IsInitialized)
{
Log = server.Manager.GetLogger(),
ServerId = server.ToString()
});
OnEvent(new EventState()
{
Log = server.Manager.GetLogger(),
ServerId = server.ToString()
});
}
await Task.Delay(100);
}
});
@ -42,7 +45,7 @@ namespace IW4MAdmin.Application.IO
private void OnEvent(object state)
{
long newLength = new FileInfo(GameLogFile).Length;
try
{
UpdateLogEvents(newLength);