diff options
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; |
