aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2024-03-12 15:32:59 -0500
committerGitHub <noreply@github.com>2024-03-12 15:32:59 -0500
commit0e3bea645c3468681abb10323806008fa3485ac0 (patch)
treeb64fa1012ad1628541131c623fe6d758953f43c5 /src
parente3fc5c61afb1c17018e6ea1474a84c7c2e500162 (diff)
parent139e8e8e9ac3cab71e78c11ff4e32a2c1cf31e31 (diff)
downloadslskd-0e3bea645c3468681abb10323806008fa3485ac0.tar.gz
Merge pull request #1097 from slskd/result-logs
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();