fix bad key lookup in manager

This commit is contained in:
RaidMax 2021-06-30 14:01:41 -05:00
parent 1b773f21c6
commit 56aec53e72

View File

@ -240,7 +240,7 @@ namespace IW4MAdmin.Application
} }
// remove the update tasks as they have completed // remove the update tasks as they have completed
foreach (var serverId in serverTasksToRemove) foreach (var serverId in serverTasksToRemove.Where(serverId => runningUpdateTasks.ContainsKey(serverId)))
{ {
if (!runningUpdateTasks[serverId].tokenSource.Token.IsCancellationRequested) if (!runningUpdateTasks[serverId].tokenSource.Token.IsCancellationRequested)
{ {