aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Session/SessionManager.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2024-04-13 01:45:01 +0200
committerGitHub <noreply@github.com>2024-04-12 17:45:01 -0600
commit7d28d08e08a412ab88ede368220562799f2bd7c0 (patch)
treebf9b37aefa6561599347e4ec02a32b29bd301f55 /Emby.Server.Implementations/Session/SessionManager.cs
parent134bf7a6a58402a08e8e59f7f9ee626881dfa183 (diff)
Enable more warnings as errors (#11288)
Diffstat (limited to 'Emby.Server.Implementations/Session/SessionManager.cs')
-rw-r--r--Emby.Server.Implementations/Session/SessionManager.cs5
1 files changed, 1 insertions, 4 deletions
diff --git a/Emby.Server.Implementations/Session/SessionManager.cs b/Emby.Server.Implementations/Session/SessionManager.cs
index 75945b08a..06798628f 100644
--- a/Emby.Server.Implementations/Session/SessionManager.cs
+++ b/Emby.Server.Implementations/Session/SessionManager.cs
@@ -159,10 +159,7 @@ namespace Emby.Server.Implementations.Session
private void CheckDisposed()
{
- if (_disposed)
- {
- throw new ObjectDisposedException(GetType().Name);
- }
+ ObjectDisposedException.ThrowIf(_disposed, this);
}
private void OnSessionStarted(SessionInfo info)