diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2020-07-27 00:16:09 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-27 00:16:09 -0400 |
| commit | d7287a05ad939b27b1107d748c623ebe8dfe6a25 (patch) | |
| tree | b0d9e4c41793f78ca6ef8fe18973b9b398970381 /Emby.Server.Implementations/IO/FileRefresher.cs | |
| parent | 749c9618724df90a28ab07b712d6ecb2999b3792 (diff) | |
| parent | 01e781035fc974c329f23892ea95bae66baa82f1 (diff) | |
Merge pull request #3684 from Bond-009/warn22
Fix warnings
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); } } } |
