From 139e8e8e9ac3cab71e78c11ff4e32a2c1cf31e31 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Tue, 12 Mar 2024 15:27:08 -0500 Subject: avoid logging searches with server exclusions applied --- src/slskd/Application.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') 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(); -- cgit v1.2.3