check timer for null before attempting to dispose

This commit is contained in:
Luke Pulverenti 2013-06-11 08:18:59 -04:00
parent c5dc02ec43
commit c16fac0500

View File

@ -391,9 +391,12 @@ namespace MediaBrowser.Server.Implementations.IO
Logger.Info("Timer stopped.");
if (_updateTimer != null)
{
_updateTimer.Dispose();
_updateTimer = null;
}
}
var paths = _affectedPaths.Keys.ToList();
_affectedPaths.Clear();