mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-21 21:20:39 +02:00
check timer for null before attempting to dispose
This commit is contained in:
parent
c5dc02ec43
commit
c16fac0500
|
@ -391,8 +391,11 @@ namespace MediaBrowser.Server.Implementations.IO
|
||||||
|
|
||||||
Logger.Info("Timer stopped.");
|
Logger.Info("Timer stopped.");
|
||||||
|
|
||||||
_updateTimer.Dispose();
|
if (_updateTimer != null)
|
||||||
_updateTimer = null;
|
{
|
||||||
|
_updateTimer.Dispose();
|
||||||
|
_updateTimer = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var paths = _affectedPaths.Keys.ToList();
|
var paths = _affectedPaths.Keys.ToList();
|
||||||
|
|
Loading…
Reference in a new issue