Merge pull request #2175 from MediaBrowser/dev

Dev
This commit is contained in:
Luke 2016-09-16 08:23:02 -04:00 committed by GitHub
commit a44bebb392

View File

@ -390,13 +390,13 @@ namespace MediaBrowser.Common.Implementations.ScheduledTasks
try try
{ {
var localTask = ScheduledTask.Execute(CurrentCancellationTokenSource.Token, progress);
if (options != null && options.MaxRuntimeMs.HasValue) if (options != null && options.MaxRuntimeMs.HasValue)
{ {
CurrentCancellationTokenSource.CancelAfter(options.MaxRuntimeMs.Value); CurrentCancellationTokenSource.CancelAfter(options.MaxRuntimeMs.Value);
} }
var localTask = ScheduledTask.Execute(CurrentCancellationTokenSource.Token, progress);
await localTask.ConfigureAwait(false); await localTask.ConfigureAwait(false);
status = TaskCompletionStatus.Completed; status = TaskCompletionStatus.Completed;