diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-02-18 18:54:53 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-02-18 18:54:53 -0600 |
| commit | bd4393c41afcc55520be7ab8e2464bee0d55308a (patch) | |
| tree | 6f5d46b93d660fa0e9d5f154b1f2bb33a4746ace /src/slskd/Core | |
| parent | c4574d13c454cfcef27ed29da446159e7f46f919 (diff) | |
| download | slskd-bd4393c41afcc55520be7ab8e2464bee0d55308a.tar.gz | |
specify baseDelay
Diffstat (limited to 'src/slskd/Core')
| -rw-r--r-- | src/slskd/Core/ConnectionWatchdog.cs | 1 |
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); |
