1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-09 23:00:57 -05:00

preemptive checks

This commit is contained in:
RaidMax
2021-01-17 22:12:18 -06:00
parent c231c6b610
commit ba62afbe99
2 changed files with 2 additions and 1 deletions

View File

@ -196,7 +196,7 @@ namespace IW4MAdmin.Application
}
// we don't want to remove events that are correlated to command
if (ProcessingEvents.Values.Count(gameEvent => gameEvent.CorrelationId == newEvent.CorrelationId) == 1)
if (ProcessingEvents.Values.ToList()?.Count(gameEvent => gameEvent.CorrelationId == newEvent.CorrelationId) == 1)
{
ProcessingEvents.Remove(newEvent.Id, out _);
}