aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Application/SharedFileCache.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Application/SharedFileCache.cs b/src/slskd/Application/SharedFileCache.cs
index b03d3019..ce1d796f 100644
--- a/src/slskd/Application/SharedFileCache.cs
+++ b/src/slskd/Application/SharedFileCache.cs
@@ -133,7 +133,7 @@ namespace slskd
var masks = new Dictionary<string, string>(shares
.Select(s => System.IO.Directory.GetParent(s).FullName)
- .Select(s => new KeyValuePair<string, string>(Compute.MaskHash(s), s)));
+ .Select(s => new KeyValuePair<string, string>(Compute.MaskHash(s), s)).ToHashSet());
Log.Debug("Enumerating shared directories");
swSnapshot = sw.ElapsedMilliseconds;