fix(chunkedUploads): Ensure max parallel count is at least 1

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
This commit is contained in:
Git'Fellow 2026-03-27 18:57:19 +01:00 committed by GitHub
parent aaf2ded381
commit 99a26b0a97
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,6 +25,6 @@ class ChunkedUploadConfig {
}
public static function getMaxParallelCount(): int {
return Server::get(IConfig::class)->getSystemValueInt(self::KEY_MAX_PARALLEL_COUNT, 5);
return max(1, Server::get(IConfig::class)->getSystemValueInt(self::KEY_MAX_PARALLEL_COUNT, 5));
}
}