From c3d69a12a52d2ca550aa2f7345fd6e0cc6c8a41d Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 8 Feb 2026 13:08:39 -0600 Subject: remove required option; if vpn is enabled it is required --- src/slskd/Core/ConnectionWatchdog.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/slskd/Core/ConnectionWatchdog.cs') diff --git a/src/slskd/Core/ConnectionWatchdog.cs b/src/slskd/Core/ConnectionWatchdog.cs index 7e0710a6..d2f7caa8 100644 --- a/src/slskd/Core/ConnectionWatchdog.cs +++ b/src/slskd/Core/ConnectionWatchdog.cs @@ -152,13 +152,6 @@ namespace slskd /// This should be called when the application is reasonably certain that the connection is connected. public virtual void Stop(bool abortReconnect = false) { - // if the VPN is required, we have to keep polling in the background so we can disconnect if it drops - // this is a belt-and-suspenders effort to ensure maximum protection in case someone doesn't have a kill switch - if (!OptionsAtStartup.Integration.Vpn.Required) - { - VPN.StopPolling(); - } - // stop the timer first to avoid having it start the connection process again when the cts is cancelled WatchdogTimer.Enabled = false; UpdateApplicationState(); @@ -257,7 +250,7 @@ namespace slskd return; } - if (OptionsAtStartup.Integration.Vpn.Required && !VPN.IsReady) + if (OptionsAtStartup.Integration.Vpn.Enabled && !VPN.IsReady) { IsAwaitingVpn = true; return; -- cgit v1.2.3