diff options
| author | nyanmisaka <nst799610810@gmail.com> | 2020-08-19 16:56:53 +0800 |
|---|---|---|
| committer | nyanmisaka <nst799610810@gmail.com> | 2020-08-19 16:56:53 +0800 |
| commit | aa75755480379e9497e82a4cb9410c267255c936 (patch) | |
| tree | 25a20af061fd45e90398161a8f82b45d14e7cdbb /Emby.Server.Implementations/IO/FileRefresher.cs | |
| parent | 8165c3bb21a1ac4869dafa951f8a3ca3d21dda1e (diff) | |
| parent | 93fe595e5e9863874c1973e4f2d7f3c85549d3f9 (diff) | |
Merge remote-tracking branch 'upstream/master' into fonts
Diffstat (limited to 'Emby.Server.Implementations/IO/FileRefresher.cs')
| -rw-r--r-- | Emby.Server.Implementations/IO/FileRefresher.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/IO/FileRefresher.cs b/Emby.Server.Implementations/IO/FileRefresher.cs index ef93779aa..fe74f1de7 100644 --- a/Emby.Server.Implementations/IO/FileRefresher.cs +++ b/Emby.Server.Implementations/IO/FileRefresher.cs @@ -21,6 +21,7 @@ namespace Emby.Server.Implementations.IO private readonly List<string> _affectedPaths = new List<string>(); private readonly object _timerLock = new object(); private Timer _timer; + private bool _disposed; public FileRefresher(string path, IServerConfigurationManager configurationManager, ILibraryManager libraryManager, ILogger logger) { @@ -213,11 +214,11 @@ namespace Emby.Server.Implementations.IO } } - private bool _disposed; public void Dispose() { _disposed = true; DisposeTimer(); + GC.SuppressFinalize(this); } } } |
