aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Common/Compute.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/slskd/Common/Compute.cs b/src/slskd/Common/Compute.cs
index ef1f1882..0e75be0c 100644
--- a/src/slskd/Common/Compute.cs
+++ b/src/slskd/Common/Compute.cs
@@ -29,8 +29,7 @@ namespace slskd
iteration = Math.Min(100, iteration);
var computedDelay = Math.Floor((Math.Pow(2, iteration) - 1) / 2) * 1000;
- var safeDelay = (int)Math.Min(computedDelay, int.MaxValue);
- var clampedDelay = Math.Min(safeDelay, maxDelayInMilliseconds);
+ var clampedDelay = (int)Math.Min(computedDelay, maxDelayInMilliseconds);
var jitter = new Random().Next(1000);