Skip to content

Commit

Permalink
Probably fix a parallel filter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
da3dsoul committed Nov 19, 2023
1 parent 96620a8 commit 9be5d94
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion Shoko.Server/Filters/FilterEvaluator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public Dictionary<FilterPreset, IEnumerable<IGrouping<int, int>>> BatchEvaluateF
// Fill Series IDs for filters calculated at the group level
if (!filter.ApplyAtSeriesLevel)
result = result.Select(a => new Grouping(a.Key, _series.GetByGroupID(a.Key).Select(ser => ser.AnimeSeriesID)));
results.Add(filter, result);
lock(results) results[filter] = result;
});

foreach (var filter in filters.Where(filter => !results.ContainsKey(filter)))
Expand Down
1 change: 0 additions & 1 deletion Shoko.Server/Filters/FilterableUserInfo.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Threading;
using Shoko.Server.Filters.Interfaces;

namespace Shoko.Server.Filters;
Expand Down

0 comments on commit 9be5d94

Please sign in to comment.