aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Integrations/VPN/VPNService.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/slskd/Integrations/VPN/VPNService.cs b/src/slskd/Integrations/VPN/VPNService.cs
index ead0ce60..d82a8bfe 100644
--- a/src/slskd/Integrations/VPN/VPNService.cs
+++ b/src/slskd/Integrations/VPN/VPNService.cs
@@ -149,6 +149,11 @@ public class VPNService : IDisposable
private async Task CheckConnection()
{
+ if (Client is null)
+ {
+ throw new VPNClientException("VPN client not properly initialized; something went seriously wrong! Please report to GitHub.");
+ }
+
var options = OptionsMonitor.CurrentValue.Integration.Vpn;
bool isReadyNow = false;
VPNStatus status = new VPNStatus();