mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-08 23:33:03 +01:00
fix theme videos
This commit is contained in:
@@ -709,7 +709,10 @@ namespace MediaBrowser.Api
|
||||
|
||||
public void StartKillTimer(TimerCallback callback, int intervalMs)
|
||||
{
|
||||
CheckHasExited();
|
||||
if (HasExited)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
lock (_timerLock)
|
||||
{
|
||||
@@ -728,7 +731,10 @@ namespace MediaBrowser.Api
|
||||
|
||||
public void ChangeKillTimerIfStarted()
|
||||
{
|
||||
CheckHasExited();
|
||||
if (HasExited)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
lock (_timerLock)
|
||||
{
|
||||
@@ -741,14 +747,6 @@ namespace MediaBrowser.Api
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void CheckHasExited()
|
||||
{
|
||||
if (HasExited)
|
||||
{
|
||||
throw new ObjectDisposedException("Job");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user