aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Session
diff options
context:
space:
mode:
authorDaniyar Alpyspayev <daniyara@thereachagency.com>2024-12-12 18:10:06 +0500
committerDaniyar Alpyspayev <daniyara@thereachagency.com>2024-12-12 18:10:06 +0500
commit2614fecf8df6e04b0d0a2b33722923c239ed0f91 (patch)
tree815c5c68d5403423e28a6daf29fe09b1f0b361e5 /Emby.Server.Implementations/Session
parentb89877554cf1a655251958e19439926ac99c91f7 (diff)
move to new System.Threading.Lock type for better performance
Diffstat (limited to 'Emby.Server.Implementations/Session')
-rw-r--r--Emby.Server.Implementations/Session/SessionWebSocketListener.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Session/SessionWebSocketListener.cs b/Emby.Server.Implementations/Session/SessionWebSocketListener.cs
index aba51de8f..c4f6a6285 100644
--- a/Emby.Server.Implementations/Session/SessionWebSocketListener.cs
+++ b/Emby.Server.Implementations/Session/SessionWebSocketListener.cs
@@ -41,7 +41,7 @@ namespace Emby.Server.Implementations.Session
/// <summary>
/// Lock used for accessing the WebSockets watchlist.
/// </summary>
- private readonly object _webSocketsLock = new object();
+ private readonly Lock _webSocketsLock = new();
private readonly ISessionManager _sessionManager;
private readonly ILogger<SessionWebSocketListener> _logger;