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:
@ -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);
|
||||
|
Reference in New Issue
Block a user