aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-02-07 18:44:08 -0600
committerJP Dillingham <jp@dillingham.me>2026-02-07 18:44:08 -0600
commit96c5e799a576d063e541f0c4ee0cd76847d75290 (patch)
tree07014d9cc9f1db7771d73bece311eacbd80a78da /src
parenta29a2fddedc0deb670e14256df4ca13466e05b71 (diff)
downloadslskd-96c5e799a576d063e541f0c4ee0cd76847d75290.tar.gz
add vpn exception to disconnect handling
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Application.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs
index 93db9073..daed5d3f 100644
--- a/src/slskd/Application.cs
+++ b/src/slskd/Application.cs
@@ -962,6 +962,11 @@ namespace slskd
{
Log.Error("Disconnected from the Soulseek server: another client logged in using the same username");
}
+ else if (args.Exception is VPNClientException)
+ {
+ Log.Error("Disconnected from the Soulseek server; VPN is required and the VPN client has gone down");
+ ConnectionWatchdog.Start();
+ }
else
{
Log.Error("Disconnected from the Soulseek server: {Message}", args.Exception?.Message ?? args.Message);