From 5387effb11f58db572077a228882c9bd7eb7fd6d Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Mon, 19 Jan 2026 12:24:52 -0600 Subject: ignore UserOfflineException --- src/slskd/Application.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3