From 632cb6e021993d95059c206c5a2a0c59c5a2d3bc Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Wed, 31 Aug 2022 17:19:43 -0500 Subject: docs --- src/slskd/Transfers/Uploads/UploadQueue.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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; -- cgit v1.2.3