diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-02-15 10:43:19 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-02-15 10:43:19 -0600 |
| commit | 24b734299857c2a231918bcad02a3b06dbf3baf4 (patch) | |
| tree | 163de9f153c847145f7c7b6e903166efef87f1e0 /src/slskd/Integrations | |
| parent | 52957f1c063ef03b6f856543639c56eae035c7ba (diff) | |
| download | slskd-24b734299857c2a231918bcad02a3b06dbf3baf4.tar.gz | |
add a null coalesce of Timer when disposing
Diffstat (limited to 'src/slskd/Integrations')
| -rw-r--r-- | src/slskd/Integrations/VPN/VPNService.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Integrations/VPN/VPNService.cs b/src/slskd/Integrations/VPN/VPNService.cs index bc3eb668..ead0ce60 100644 --- a/src/slskd/Integrations/VPN/VPNService.cs +++ b/src/slskd/Integrations/VPN/VPNService.cs @@ -140,7 +140,7 @@ public class VPNService : IDisposable { if (disposing) { - Timer.Dispose(); + Timer?.Dispose(); } Disposed = true; |
