From f174c680f6133580033d9baaff71d40bce43e753 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Mon, 7 Apr 2025 12:33:36 -0500 Subject: leave some notes --- src/slskd/Application.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/slskd/Application.cs') 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); } -- cgit v1.2.3