diff options
| author | JP Dillingham <jp@dillingham.me> | 2025-04-07 12:33:36 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2025-04-07 13:55:51 -0500 |
| commit | f174c680f6133580033d9baaff71d40bce43e753 (patch) | |
| tree | 46ac9637b7310268f6e9720d9af0657717a17f38 /src | |
| parent | 21da11dfae33529d2672da06a8fa52b5343b5239 (diff) | |
| download | slskd-f174c680f6133580033d9baaff71d40bce43e753.tar.gz | |
leave some notes
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Application.cs | 4 | ||||
| -rw-r--r-- | src/slskd/Users/UserService.cs | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs index 4ed9d092..f13a1c9b 100644 --- a/src/slskd/Application.cs +++ b/src/slskd/Application.cs @@ -1666,10 +1666,14 @@ namespace slskd try { + // note: the Picture setting is validated at startup to ensure it exists and that + // it is readable pictureBytes = await System.IO.File.ReadAllBytesAsync(Options.Soulseek.Picture); } catch (Exception ex) { + // this isn't a serious enough problem to prevent us from continuing, so we'll just + // log a warning and continue, omitting the picture Log.Warning("Failed to read Soulseek picture {Picture}: {Message}", Options.Soulseek.Picture, ex.Message); } diff --git a/src/slskd/Users/UserService.cs b/src/slskd/Users/UserService.cs index 55b02134..2e312f69 100644 --- a/src/slskd/Users/UserService.cs +++ b/src/slskd/Users/UserService.cs @@ -19,16 +19,13 @@ using Microsoft.Extensions.Options; namespace slskd.Users { - using System; using System.Collections.Concurrent; using System.Collections.Generic; - using System.IO; using System.Linq; using System.Net; using System.Threading.Tasks; using NetTools; using Serilog; - using slskd.Files; using Soulseek; /// <summary> |
