diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-01-19 12:24:52 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-01-19 12:24:52 -0600 |
| commit | 5387effb11f58db572077a228882c9bd7eb7fd6d (patch) | |
| tree | ca7dbd231cca9b3b02345ae599d3354232114d87 /src | |
| parent | f9cf6063927da9d83a472df1ac90e7a35de40cc9 (diff) | |
| download | slskd-5387effb11f58db572077a228882c9bd7eb7fd6d.tar.gz | |
ignore UserOfflineException
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Application.cs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs index fdbddab9..bed8aab2 100644 --- a/src/slskd/Application.cs +++ b/src/slskd/Application.cs @@ -1656,9 +1656,16 @@ namespace slskd // it's unfortunate that we have to do this to get the IP, but we have to do it // anyway to send the results, and the information is cached. whether we do it here // or Soulseek.NET does it under the hood doesn't really matter. - var endpoint = await Client.GetUserEndPointAsync(username); + try + { + var endpoint = await Client.GetUserEndPointAsync(username); - if (Users.IsBlacklisted(username, endpoint.Address)) + if (Users.IsBlacklisted(username, endpoint.Address)) + { + return null; + } + } + catch (Soulseek.UserOfflineException) { return null; } |
