diff --git a/ArcdpsLogManager/Sections/GameDataGathering.cs b/ArcdpsLogManager/Sections/GameDataGathering.cs index 2a6902b0..7c375e1a 100644 --- a/ArcdpsLogManager/Sections/GameDataGathering.cs +++ b/ArcdpsLogManager/Sections/GameDataGathering.cs @@ -376,8 +376,8 @@ private void GatherData(LogList logList, ProgressBar progressBar, Label progress return Task.Run(() => { // TODO: Change List into some kind of concurrent bag - var species = new ConcurrentDictionary>>(); - var skills = new ConcurrentDictionary>>(); + var species = new ConcurrentDictionary>>(); + var skills = new ConcurrentDictionary>>(); int done = 0; int failed = 0; @@ -405,9 +405,9 @@ private void GatherData(LogList logList, ProgressBar progressBar, Label progress if (id == 0) continue; var speciesData = new SpeciesData(id, name); - var dictForSpecies = species.GetOrAdd(id, new ConcurrentDictionary>()); + var dictForSpecies = species.GetOrAdd(id, new ConcurrentDictionary>()); - var listForSpeciesData = dictForSpecies.GetOrAdd(speciesData, new List()); + var listForSpeciesData = dictForSpecies.GetOrAdd(speciesData, new ConcurrentBag()); listForSpeciesData.Add(log); } @@ -426,9 +426,9 @@ private void GatherData(LogList logList, ProgressBar progressBar, Label progress if (id == 0) continue; var skillData = new SkillData(id, name, skillType); - var dictForSkill = skills.GetOrAdd(id, new ConcurrentDictionary>()); + var dictForSkill = skills.GetOrAdd(id, new ConcurrentDictionary>()); - var listForSkillData = dictForSkill.GetOrAdd(skillData, new List()); + var listForSkillData = dictForSkill.GetOrAdd(skillData, new ConcurrentBag()); listForSkillData.Add(log); }