The Free Software Media System - Server Backend & API
don't restart timer if disposed
Luke Pulverenti6f20a8ca059f
diff --git a/MediaBrowser.Server.Implementations/IO/FileRefresher.cs b/MediaBrowser.Server.Implementations/IO/FileRefresher.csindex f48beacb57..742585143f 100644--- a/MediaBrowser.Server.Implementations/IO/FileRefresher.cs+++ b/MediaBrowser.Server.Implementations/IO/FileRefresher.cs@@ -61,6 +61,11 @@ namespace MediaBrowser.Server.Implementations.IOpublic void RestartTimer(){+ if (_disposed)+ {+ return;+ }+lock (_timerLock){if (_timer == null)@@ -281,8 +286,10 @@ namespace MediaBrowser.Server.Implementations.IO}}+ private bool _disposed;public void Dispose(){+ _disposed = true;DisposeTimer();}}