aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/WebSocketListeners/ActivityLogWebSocketListener.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2023-11-05 02:01:14 +0100
committerBond_009 <bond.009@outlook.com>2023-11-05 02:01:14 +0100
commita9ef103c95a7460031879726f4afda3013ca6619 (patch)
tree3df916041590d163b86730e38aca27afe9285335 /Jellyfin.Api/WebSocketListeners/ActivityLogWebSocketListener.cs
parent6392a8037f9be3526c350f61372c8fe17ab96937 (diff)
Add IDisposableAnalyzers to more projects
Diffstat (limited to 'Jellyfin.Api/WebSocketListeners/ActivityLogWebSocketListener.cs')
-rw-r--r--Jellyfin.Api/WebSocketListeners/ActivityLogWebSocketListener.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Jellyfin.Api/WebSocketListeners/ActivityLogWebSocketListener.cs b/Jellyfin.Api/WebSocketListeners/ActivityLogWebSocketListener.cs
index 5b90d65d8..ba228cb00 100644
--- a/Jellyfin.Api/WebSocketListeners/ActivityLogWebSocketListener.cs
+++ b/Jellyfin.Api/WebSocketListeners/ActivityLogWebSocketListener.cs
@@ -53,7 +53,10 @@ public class ActivityLogWebSocketListener : BasePeriodicWebSocketListener<Activi
/// <inheritdoc />
protected override void Dispose(bool dispose)
{
- _activityManager.EntryCreated -= OnEntryCreated;
+ if (dispose)
+ {
+ _activityManager.EntryCreated -= OnEntryCreated;
+ }
base.Dispose(dispose);
}