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