diff --git a/DepotDownloader/Util.cs b/DepotDownloader/Util.cs index eccca488..d249c1fc 100644 --- a/DepotDownloader/Util.cs +++ b/DepotDownloader/Util.cs @@ -136,7 +136,7 @@ namespace DepotDownloader public static async Task InvokeAsync(IEnumerable> taskFactories, int maxDegreeOfParallelism) { ArgumentNullException.ThrowIfNull(taskFactories); - ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(0, maxDegreeOfParallelism); + ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(maxDegreeOfParallelism, 0); var queue = taskFactories.ToArray();