The Free Software Media System - Server Backend & API
nameof instead of GetType().Name
Bond_0098e1f0d53c1ef
diff --git a/Emby.Server.Implementations/Data/ConnectionPool.cs b/Emby.Server.Implementations/Data/ConnectionPool.csindex a671eb165d..5ea7e934ff 100644--- a/Emby.Server.Implementations/Data/ConnectionPool.cs+++ b/Emby.Server.Implementations/Data/ConnectionPool.cs@@ -38,9 +38,9 @@ public sealed class ConnectionPool : IDisposablereturn new ManagedConnection(_connections.Take(), this);- void ThrowObjectDisposedException()+ static void ThrowObjectDisposedException(){- throw new ObjectDisposedException(GetType().Name);+ throw new ObjectDisposedException(nameof(ConnectionPool));}}