aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Application.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs
index b2f075b4..b105cb56 100644
--- a/src/slskd/Application.cs
+++ b/src/slskd/Application.cs
@@ -585,7 +585,10 @@ namespace slskd
if (over.Files || over.Megabytes)
{
Log.Information("Rejected enqueue request for user {Username}: Queued limits exceeded", username);
- throw new DownloadEnqueueException($"Too many {(over.Files ? "files" : "megabytes")} queued");
+
+ // note: return exactly 'Too many files' or 'Too many megabytes' to ensure interop with other clients.
+ // these messages are retryable, while anything else is not
+ throw new DownloadEnqueueException($"Too many {(over.Files ? "files" : "megabytes")}");
}
}