aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/IO/FileRefresher.cs
diff options
context:
space:
mode:
authorNyanmisaka <nst799610810@gmail.com>2020-07-27 13:57:40 +0800
committerGitHub <noreply@github.com>2020-07-27 13:57:40 +0800
commitdf6b303da79864dfe0feaf972a9fc3ae5bec3413 (patch)
treeb54e6b3c216393bbec16a346b3bf9baa08d940c1 /Emby.Server.Implementations/IO/FileRefresher.cs
parent95b961c8647b9db98d52631561cfc98224b905f7 (diff)
parentd7287a05ad939b27b1107d748c623ebe8dfe6a25 (diff)
Merge branch 'master' into tonemap
Diffstat (limited to 'Emby.Server.Implementations/IO/FileRefresher.cs')
-rw-r--r--Emby.Server.Implementations/IO/FileRefresher.cs3
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);
}
}
}