aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Data/ConnectionPool.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2023-05-04 14:42:39 +0200
committerBond_009 <bond.009@outlook.com>2023-05-04 14:42:39 +0200
commit8e1f0d53c1efe286628a4119b3c595f219513d23 (patch)
tree3bed08fccf8215d91bc57099a8ea0253680308d2 /Emby.Server.Implementations/Data/ConnectionPool.cs
parent0d67901e373ff8a2ab279d51c3c1f88adf68bfcf (diff)
nameof instead of GetType().Name
Diffstat (limited to 'Emby.Server.Implementations/Data/ConnectionPool.cs')
-rw-r--r--Emby.Server.Implementations/Data/ConnectionPool.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Data/ConnectionPool.cs b/Emby.Server.Implementations/Data/ConnectionPool.cs
index a671eb165..5ea7e934f 100644
--- a/Emby.Server.Implementations/Data/ConnectionPool.cs
+++ b/Emby.Server.Implementations/Data/ConnectionPool.cs
@@ -38,9 +38,9 @@ public sealed class ConnectionPool : IDisposable
return new ManagedConnection(_connections.Take(), this);
- void ThrowObjectDisposedException()
+ static void ThrowObjectDisposedException()
{
- throw new ObjectDisposedException(GetType().Name);
+ throw new ObjectDisposedException(nameof(ConnectionPool));
}
}