diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-02-08 13:08:39 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-02-08 13:08:39 -0600 |
| commit | c3d69a12a52d2ca550aa2f7345fd6e0cc6c8a41d (patch) | |
| tree | c9818cce24d72b1137e6b477d08ff611af2f2af7 /src/slskd/Core/ConnectionWatchdog.cs | |
| parent | 29d7927982da0cc26484410ead30758f242b3dfc (diff) | |
| download | slskd-c3d69a12a52d2ca550aa2f7345fd6e0cc6c8a41d.tar.gz | |
remove required option; if vpn is enabled it is required
Diffstat (limited to 'src/slskd/Core/ConnectionWatchdog.cs')
| -rw-r--r-- | src/slskd/Core/ConnectionWatchdog.cs | 9 |
1 files changed, 1 insertions, 8 deletions
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 /// <remarks>This should be called when the application is reasonably certain that the connection is connected.</remarks> 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; |
