diff options
| author | JP Dillingham <jp@dillingham.me> | 2025-10-10 09:31:25 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2025-10-10 09:31:25 -0500 |
| commit | 4936f6eb85c84cd2986721c21b8acd64bf1a1de6 (patch) | |
| tree | 7bcaaab06d50d47611f6c199bd85f5a9b1752af9 /src | |
| parent | 3519905e397f5d2707aefc39db74ccb93fff8f4a (diff) | |
| download | slskd-4936f6eb85c84cd2986721c21b8acd64bf1a1de6.tar.gz | |
return early if there's nothing to enqueue
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Transfers/Downloads/DownloadService.cs | 5 |
1 files changed, 5 insertions, 0 deletions
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. |
