From 4936f6eb85c84cd2986721c21b8acd64bf1a1de6 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Fri, 10 Oct 2025 09:31:25 -0500 Subject: return early if there's nothing to enqueue --- src/slskd/Transfers/Downloads/DownloadService.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/slskd/Transfers/Downloads/DownloadService.cs b/src/slskd/Transfers/Downloads/DownloadService.cs index 81d8394b..ba88777c 100644 --- a/src/slskd/Transfers/Downloads/DownloadService.cs +++ b/src/slskd/Transfers/Downloads/DownloadService.cs @@ -595,6 +595,11 @@ namespace slskd.Transfers.Downloads } } + if (enqueued.Count == 0) + { + return (enqueued, failed); + } + /* the files are all now in the database in the Queued | Locally state. -- cgit v1.2.3