aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core/API/Controllers
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2025-06-19 12:27:07 -0500
committerJP Dillingham <jp@dillingham.me>2025-06-19 12:27:07 -0500
commit5623053911f10b68d73fc38c9d0cc89f0ce81488 (patch)
tree904731b9f50aadaaf2d21d18f457f309e21b1415 /src/slskd/Core/API/Controllers
parent364c2200c4bd1953077714e151b47fbc6faae9eb (diff)
downloadslskd-5623053911f10b68d73fc38c9d0cc89f0ce81488.tar.gz
abort reconnect when stopping via API
Diffstat (limited to 'src/slskd/Core/API/Controllers')
-rw-r--r--src/slskd/Core/API/Controllers/ServerController.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/slskd/Core/API/Controllers/ServerController.cs b/src/slskd/Core/API/Controllers/ServerController.cs
index cfc695a0..aceaeec9 100644
--- a/src/slskd/Core/API/Controllers/ServerController.cs
+++ b/src/slskd/Core/API/Controllers/ServerController.cs
@@ -93,6 +93,9 @@ namespace slskd.Core.API
return Forbid();
}
+ // stop the watchdog so that it will exit any retry logic
+ ConnectionWatchdog.Stop(abortReconnect: true);
+
if (Client.State.HasFlag(SoulseekClientStates.Connected))
{
// the IntentionalDisconnectException is used to indicate that the disconnect was intentional, which