aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Devices
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2024-12-20 22:15:45 +0100
committerGitHub <noreply@github.com>2024-12-20 22:15:45 +0100
commitc4d44198007be4cfd48fcf5ff4d06d9b8f0cb75c (patch)
treeb6bdace3074343726bd70f8a5151480c8d87fe09 /Emby.Server.Implementations/Devices
parent17f064314749359d159b06409d46918e7cd47e10 (diff)
parent2614fecf8df6e04b0d0a2b33722923c239ed0f91 (diff)
Merge pull request #13213 from Ich1goSan/master
move to new System.Threading.Lock type for better performance
Diffstat (limited to 'Emby.Server.Implementations/Devices')
-rw-r--r--Emby.Server.Implementations/Devices/DeviceId.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Devices/DeviceId.cs b/Emby.Server.Implementations/Devices/DeviceId.cs
index 2459178d8..0b3c3bbd4 100644
--- a/Emby.Server.Implementations/Devices/DeviceId.cs
+++ b/Emby.Server.Implementations/Devices/DeviceId.cs
@@ -4,6 +4,7 @@ using System;
using System.Globalization;
using System.IO;
using System.Text;
+using System.Threading;
using MediaBrowser.Common.Configuration;
using Microsoft.Extensions.Logging;
@@ -13,7 +14,7 @@ namespace Emby.Server.Implementations.Devices
{
private readonly IApplicationPaths _appPaths;
private readonly ILogger<DeviceId> _logger;
- private readonly object _syncLock = new object();
+ private readonly Lock _syncLock = new();
private string? _id;