1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

Merge branch '2.3' into 2.4-pr

This commit is contained in:
RaidMax
2019-08-24 11:10:43 -05:00
4 changed files with 55 additions and 15 deletions

View File

@ -222,8 +222,15 @@ namespace IW4MAdmin.Application
{
await Task.Delay(ConfigHandler.Configuration().RConPollRate, _tokenSource.Token);
}
// if a cancellation is received, we want to return immediately
catch { break; }
// if a cancellation is received, we want to return immediately after shutting down
catch
{
foreach (var server in Servers.Where(s => serverIds.Contains(s.EndPoint)))
{
await server.ProcessUpdatesAsync(_tokenSource.Token);
}
break;
}
}
}