diff options
| author | JP Dillingham <jp@dillingham.me> | 2025-07-12 18:15:52 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2025-07-12 18:15:52 -0500 |
| commit | d4c631f853073c2eab91e428d912d931a293fd9a (patch) | |
| tree | 3ffd9c5a4d02be390fc4fcfa43b97801ad8cf4d6 /src | |
| parent | 69d039a015e2177d2713eea74b6d79fde1147ce7 (diff) | |
| download | slskd-d4c631f853073c2eab91e428d912d931a293fd9a.tar.gz | |
docs
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Search/SearchService.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/slskd/Search/SearchService.cs b/src/slskd/Search/SearchService.cs index 81f37640..a828cfa6 100644 --- a/src/slskd/Search/SearchService.cs +++ b/src/slskd/Search/SearchService.cs @@ -266,7 +266,7 @@ namespace slskd.Search // this logic is executed by Soulseek.NET upon each transition of the searcn, including the final // transition to Completed. if for some reason something goes wrong, we won't see the final Completed // transition, we should instead see the task below throw, in which case it will become - // faulted and we'll set the Completed flag manually in the ContinueWith() block + // faulted and we'll set the Completed flag manually in the catch block search = search.WithSoulseekSearch(args.Search); Update(search); @@ -328,6 +328,7 @@ namespace slskd.Search search.State = SearchStates.Completed | SearchStates.Errored; } + // todo: remove this once we're sure the problem is fixed if (!search.State.HasFlag(SearchStates.Completed)) { Log.Warning("Gotcha! Search for '{Search}' concluded without the Completed flag. Time is now {Timestamp}. States: {States}", query.SearchText, DateTime.UtcNow, stateTransitions); |
