From 5623053911f10b68d73fc38c9d0cc89f0ce81488 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Thu, 19 Jun 2025 12:27:07 -0500 Subject: abort reconnect when stopping via API --- src/slskd/Core/API/Controllers/ServerController.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/slskd/Core/API/Controllers') 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 -- cgit v1.2.3