aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2024-03-12 15:27:08 -0500
committerJP Dillingham <jp@dillingham.me>2024-03-12 15:27:08 -0500
commit139e8e8e9ac3cab71e78c11ff4e32a2c1cf31e31 (patch)
treeb64fa1012ad1628541131c623fe6d758953f43c5 /src
parente3fc5c61afb1c17018e6ea1474a84c7c2e500162 (diff)
downloadslskd-139e8e8e9ac3cab71e78c11ff4e32a2c1cf31e31.tar.gz
avoid logging searches with server exclusions applied
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();