aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/ApiEntryPoint.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-11-08 00:04:38 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-11-08 00:04:38 -0500
commit7760f022af8230cada08d500682aa2dbaff4d8cc (patch)
tree23b28b07230c020886b2fee0d21148feb76c7adf /MediaBrowser.Api/ApiEntryPoint.cs
parent1b0b7ac6a59afffe5cffde946618c712607f46c3 (diff)
fix theme videos
Diffstat (limited to 'MediaBrowser.Api/ApiEntryPoint.cs')
-rw-r--r--MediaBrowser.Api/ApiEntryPoint.cs18
1 files changed, 8 insertions, 10 deletions
diff --git a/MediaBrowser.Api/ApiEntryPoint.cs b/MediaBrowser.Api/ApiEntryPoint.cs
index 7f4db5a89..1abbce408 100644
--- a/MediaBrowser.Api/ApiEntryPoint.cs
+++ b/MediaBrowser.Api/ApiEntryPoint.cs
@@ -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>