aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/IO
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-09-17 02:11:16 -0400
committerGitHub <noreply@github.com>2016-09-17 02:11:16 -0400
commit20739b144b5e7486d8b5fb0984aebca0de9e3284 (patch)
tree0faa8e2ab8e286791829a778b1c3b24c9857fdeb /MediaBrowser.Server.Implementations/IO
parentbdc260d33b731cf82ae21248c661f24b856fd94b (diff)
parent5cfae1ada1114cb03561565c0e8a9d354e89562e (diff)
Merge pull request #2176 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.Server.Implementations/IO')
-rw-r--r--MediaBrowser.Server.Implementations/IO/FileRefresher.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/IO/FileRefresher.cs b/MediaBrowser.Server.Implementations/IO/FileRefresher.cs
index 2f4605c5c..8e28aa2a0 100644
--- a/MediaBrowser.Server.Implementations/IO/FileRefresher.cs
+++ b/MediaBrowser.Server.Implementations/IO/FileRefresher.cs
@@ -68,6 +68,11 @@ namespace MediaBrowser.Server.Implementations.IO
lock (_timerLock)
{
+ if (_disposed)
+ {
+ return;
+ }
+
if (_timer == null)
{
_timer = new Timer(OnTimerCallback, null, TimeSpan.FromSeconds(ConfigurationManager.Configuration.LibraryMonitorDelay), TimeSpan.FromMilliseconds(-1));
@@ -287,6 +292,7 @@ namespace MediaBrowser.Server.Implementations.IO
if (_timer != null)
{
_timer.Dispose();
+ _timer = null;
}
}
}