diff options
| author | Bond-009 <bond.009@outlook.com> | 2024-12-20 22:15:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-20 22:15:45 +0100 |
| commit | c4d44198007be4cfd48fcf5ff4d06d9b8f0cb75c (patch) | |
| tree | b6bdace3074343726bd70f8a5151480c8d87fe09 /Emby.Server.Implementations/IO/FileRefresher.cs | |
| parent | 17f064314749359d159b06409d46918e7cd47e10 (diff) | |
| parent | 2614fecf8df6e04b0d0a2b33722923c239ed0f91 (diff) | |
Merge pull request #13213 from Ich1goSan/master
move to new System.Threading.Lock type for better performance
Diffstat (limited to 'Emby.Server.Implementations/IO/FileRefresher.cs')
| -rw-r--r-- | Emby.Server.Implementations/IO/FileRefresher.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/IO/FileRefresher.cs b/Emby.Server.Implementations/IO/FileRefresher.cs index e75cab64c..7378cf885 100644 --- a/Emby.Server.Implementations/IO/FileRefresher.cs +++ b/Emby.Server.Implementations/IO/FileRefresher.cs @@ -18,8 +18,8 @@ namespace Emby.Server.Implementations.IO private readonly ILibraryManager _libraryManager; private readonly IServerConfigurationManager _configurationManager; - private readonly List<string> _affectedPaths = new List<string>(); - private readonly object _timerLock = new object(); + private readonly List<string> _affectedPaths = new(); + private readonly Lock _timerLock = new(); private Timer? _timer; private bool _disposed; |
