diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-02-15 10:43:54 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-02-15 10:43:54 -0600 |
| commit | 79a17ea8d4cbe6b96e39818cb57053bce6fa08d7 (patch) | |
| tree | 298f2c80d780c5b0518b0289c3efb7a4d1ec6b44 /src/slskd/Integrations/VPN | |
| parent | bd9fb7485d4ef3383a0d2504f14ad3eebd6bae3e (diff) | |
| download | slskd-79a17ea8d4cbe6b96e39818cb57053bce6fa08d7.tar.gz | |
properly check result of WaitAsync
Diffstat (limited to 'src/slskd/Integrations/VPN')
| -rw-r--r-- | src/slskd/Integrations/VPN/VPNService.cs | 5 |
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 { |
