aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-10-28 19:07:01 -0500
committerJP Dillingham <jp@dillingham.me>2026-10-28 19:07:01 -0500
commit053e68f5ca0acf8e3f0ec914b4136a22a4a1b6db (patch)
tree2f2cea435c595f193b933aec2b0389ac243d3e8e
parentc33fd207076d63242f8d0be112051967ddf891db (diff)
downloadslskd-053e68f5ca0acf8e3f0ec914b4136a22a4a1b6db.tar.gz
don't return place in queue for uploads
-rw-r--r--src/slskd/Transfers/Downloads/DownloadService.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Transfers/Downloads/DownloadService.cs b/src/slskd/Transfers/Downloads/DownloadService.cs
index cb9423bc..c9095dd5 100644
--- a/src/slskd/Transfers/Downloads/DownloadService.cs
+++ b/src/slskd/Transfers/Downloads/DownloadService.cs
@@ -722,9 +722,9 @@ namespace slskd.Transfers.Downloads
var transfer = context.Transfers.Find(id);
- if (transfer == default)
+ if (transfer == default || transfer.Direction != TransferDirection.Download)
{
- throw new NotFoundException($"No download matching id ${id}");
+ throw new NotFoundException($"No download matching id {id}");
}
var place = await Client.GetDownloadPlaceInQueueAsync(transfer.Username, transfer.Filename);