mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
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:
parent
aaf2ded381
commit
99a26b0a97
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue