aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-02-15 14:14:48 -0600
committerJP Dillingham <jp@dillingham.me>2026-02-15 14:14:48 -0600
commit5af4d47bc0404af0fce979511552fe9ba07efa85 (patch)
tree2b4266e1de210cfcc939c7f5ab4898620e60e33f /src
parent2c1ee760f5cef4e1746a1b97a70561496787b8ee (diff)
downloadslskd-5af4d47bc0404af0fce979511552fe9ba07efa85.tar.gz
coalesce downloads
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Transfers/Downloads/DownloadService.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Transfers/Downloads/DownloadService.cs b/src/slskd/Transfers/Downloads/DownloadService.cs
index 787239f7..492e9b76 100644
--- a/src/slskd/Transfers/Downloads/DownloadService.cs
+++ b/src/slskd/Transfers/Downloads/DownloadService.cs
@@ -398,7 +398,7 @@ namespace slskd.Transfers.Downloads
it shouldn't, if the slskd database doesn't. but things could get desynced, which is likely a bug
and we'd like to know about it
*/
- if (Client.Downloads.Any(u => u.Username == username && u.Filename == file.Filename))
+ if (Client.Downloads?.Any(u => u.Username == username && u.Filename == file.Filename) ?? false)
{
Log.Warning("Ignoring concurrent download enqueue attempt; transfer for {Filename} from {Username} is tracked by the Soulseek client but not slskd", file.Filename, username);
failed.Add(file.Filename);