aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-02-15 10:43:54 -0600
committerJP Dillingham <jp@dillingham.me>2026-02-15 10:43:54 -0600
commit79a17ea8d4cbe6b96e39818cb57053bce6fa08d7 (patch)
tree298f2c80d780c5b0518b0289c3efb7a4d1ec6b44 /src
parentbd9fb7485d4ef3383a0d2504f14ad3eebd6bae3e (diff)
downloadslskd-79a17ea8d4cbe6b96e39818cb57053bce6fa08d7.tar.gz
properly check result of WaitAsync
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Integrations/VPN/VPNService.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/slskd/Integrations/VPN/VPNService.cs b/src/slskd/Integrations/VPN/VPNService.cs
index d82a8bfe..95d897a3 100644
--- a/src/slskd/Integrations/VPN/VPNService.cs
+++ b/src/slskd/Integrations/VPN/VPNService.cs
@@ -159,7 +159,10 @@ public class VPNService : IDisposable
VPNStatus status = new VPNStatus();
// one at a time!
- await TimerElapsedLock.WaitAsync(0);
+ if (!await TimerElapsedLock.WaitAsync(0))
+ {
+ return;
+ }
try
{