diff --git a/MediaBrowser.Server.Implementations/IO/DirectoryWatchers.cs b/MediaBrowser.Server.Implementations/IO/DirectoryWatchers.cs index a45d5fed0..3568e446f 100644 --- a/MediaBrowser.Server.Implementations/IO/DirectoryWatchers.cs +++ b/MediaBrowser.Server.Implementations/IO/DirectoryWatchers.cs @@ -391,8 +391,11 @@ namespace MediaBrowser.Server.Implementations.IO Logger.Info("Timer stopped."); - _updateTimer.Dispose(); - _updateTimer = null; + if (_updateTimer != null) + { + _updateTimer.Dispose(); + _updateTimer = null; + } } var paths = _affectedPaths.Keys.ToList();