aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-02-18 18:54:53 -0600
committerJP Dillingham <jp@dillingham.me>2026-03-15 11:11:47 -0500
commit41032280e1fe34aa09707b3d3d116e11b794f727 (patch)
treee37925c556e7dfbacb24ca831687f7fe1558413a /src/slskd/Core
parent6d8d4637621f933a63326d2fe0a69a6b71e6bdb1 (diff)
downloadslskd-41032280e1fe34aa09707b3d3d116e11b794f727.tar.gz
specify baseDelay
Diffstat (limited to 'src/slskd/Core')
-rw-r--r--src/slskd/Core/ConnectionWatchdog.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/slskd/Core/ConnectionWatchdog.cs b/src/slskd/Core/ConnectionWatchdog.cs
index d2f7caa8..1cf1779f 100644
--- a/src/slskd/Core/ConnectionWatchdog.cs
+++ b/src/slskd/Core/ConnectionWatchdog.cs
@@ -264,6 +264,7 @@ namespace slskd
{
var (delay, jitter) = Compute.ExponentialBackoffDelay(
iteration: attempts,
+ baseDelayInMilliseconds: 1000,
maxDelayInMilliseconds: ReconnectMaxDelayMilliseconds);
var approximateDelay = (int)Math.Ceiling((double)(delay + jitter) / 1000);