diff options
| author | JP Dillingham <jp@dillingham.me> | 2024-03-12 15:27:08 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2024-03-12 15:27:08 -0500 |
| commit | 139e8e8e9ac3cab71e78c11ff4e32a2c1cf31e31 (patch) | |
| tree | b64fa1012ad1628541131c623fe6d758953f43c5 | |
| parent | e3fc5c61afb1c17018e6ea1474a84c7c2e500162 (diff) | |
| download | slskd-139e8e8e9ac3cab71e78c11ff4e32a2c1cf31e31.tar.gz | |
avoid logging searches with server exclusions applied
| -rw-r--r-- | src/slskd/Application.cs | 10 |
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(); |
