aboutsummaryrefslogtreecommitdiff
path: root/Emby.Common.Implementations/ScheduledTasks/ScheduledTaskWorker.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-02-24 15:21:37 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-02-24 15:21:37 -0500
commita73eeac6869edc199c4d0915d07b6847d0c95524 (patch)
tree378241f264bbd6106ea6e958e5bf346d1f76b86e /Emby.Common.Implementations/ScheduledTasks/ScheduledTaskWorker.cs
parentc456490de43082f008dd592345e76cf75db1ad0a (diff)
parentcd6b7f3bdc5bcbc6c68131cc40b71b68ac1b73a6 (diff)
Merge branch 'master' of https://github.com/MediaBrowser/Emby
Diffstat (limited to 'Emby.Common.Implementations/ScheduledTasks/ScheduledTaskWorker.cs')
-rw-r--r--Emby.Common.Implementations/ScheduledTasks/ScheduledTaskWorker.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Common.Implementations/ScheduledTasks/ScheduledTaskWorker.cs b/Emby.Common.Implementations/ScheduledTasks/ScheduledTaskWorker.cs
index de528a94f..f0518f69e 100644
--- a/Emby.Common.Implementations/ScheduledTasks/ScheduledTaskWorker.cs
+++ b/Emby.Common.Implementations/ScheduledTasks/ScheduledTaskWorker.cs
@@ -379,7 +379,7 @@ namespace Emby.Common.Implementations.ScheduledTasks
/// <exception cref="System.InvalidOperationException">Cannot execute a Task that is already running</exception>
public async Task Execute(TaskExecutionOptions options)
{
- var task = ExecuteInternal(options);
+ var task = Task.Run(async () => await ExecuteInternal(options).ConfigureAwait(false));
_currentTask = task;