aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2025-10-10 09:31:25 -0500
committerJP Dillingham <jp@dillingham.me>2025-10-10 09:31:25 -0500
commit4936f6eb85c84cd2986721c21b8acd64bf1a1de6 (patch)
tree7bcaaab06d50d47611f6c199bd85f5a9b1752af9 /src
parent3519905e397f5d2707aefc39db74ccb93fff8f4a (diff)
downloadslskd-4936f6eb85c84cd2986721c21b8acd64bf1a1de6.tar.gz
return early if there's nothing to enqueue
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Transfers/Downloads/DownloadService.cs5
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.