diff options
| author | JP Dillingham <jp@dillingham.me> | 2024-01-29 07:18:32 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2024-01-29 07:18:32 -0600 |
| commit | 2a814091518131274d8484f08b469cbea9d7738e (patch) | |
| tree | 3e741aa4af17823725521cf1aab1f89e20fdd531 /src | |
| parent | 0f3052fcc0ffa94b85d44823d4fd0147c84b08c3 (diff) | |
| download | slskd-2a814091518131274d8484f08b469cbea9d7738e.tar.gz | |
return proper message when exceeding queued limits
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Application.cs | 5 |
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")}"); } } |
