aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-08-31 17:19:43 -0500
committerJP Dillingham <jp@dillingham.me>2022-08-31 17:19:43 -0500
commit632cb6e021993d95059c206c5a2a0c59c5a2d3bc (patch)
tree36c8f78b7f00a99e9b5ce122f0cf580fe74a735b /src
parentf7093610aae6007468645666bd635531d20bd848 (diff)
downloadslskd-632cb6e021993d95059c206c5a2a0c59c5a2d3bc.tar.gz
docs
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Transfers/Uploads/UploadQueue.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/slskd/Transfers/Uploads/UploadQueue.cs b/src/slskd/Transfers/Uploads/UploadQueue.cs
index e1e06e6d..54b9a6c3 100644
--- a/src/slskd/Transfers/Uploads/UploadQueue.cs
+++ b/src/slskd/Transfers/Uploads/UploadQueue.cs
@@ -442,6 +442,10 @@ namespace slskd.Transfers
try
{
+ // if the total number of used slots across all groups is greater than or equal to the configured
+ // number of global slots, just exit. we *could* proceed, but uploads would stack up behind the
+ // global semaphore in Soulseek.NET and we wouldn't be able to control the order in which those
+ // were processed, so don't do that.
if (Groups.Values.Sum(g => g.UsedSlots) >= GlobalSlots)
{
return null;