check timer for null before attempting to dispose

pull/702/head
Luke Pulverenti 11 years ago
parent c5dc02ec43
commit c16fac0500

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

Loading…
Cancel
Save