diff options
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; } |
