aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Application.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs
index 75b2eee6..7f703eaa 100644
--- a/src/slskd/Application.cs
+++ b/src/slskd/Application.cs
@@ -1380,16 +1380,16 @@ namespace slskd
return null;
}
- // append the list of excluded search phrases supplied by the server
- // see https://github.com/jpdillingham/Soulseek.NET/issues/803
- query = new SearchQuery(terms: query.Terms, exclusions: query.Exclusions.Concat(ExcludedSearchPhrases).Distinct());
-
try
{
var sw = new Stopwatch();
sw.Start();
- var results = await Shares.SearchAsync(query);
+ // append the list of excluded search phrases supplied by the server
+ // see https://github.com/jpdillingham/Soulseek.NET/issues/803
+ var queryWithExclusionsApplied = new SearchQuery(terms: query.Terms, exclusions: query.Exclusions.Concat(ExcludedSearchPhrases).Distinct());
+
+ var results = await Shares.SearchAsync(queryWithExclusionsApplied);
sw.Stop();