diff options
| author | Luke <luke.pulverenti@gmail.com> | 2017-02-18 23:18:08 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-18 23:18:08 -0500 |
| commit | aa9605ed7b07c3c96b2f7fed0799adbd055af980 (patch) | |
| tree | afed1870f3fe6f1c05dfdd5017c71c53a7ae9e1a /Emby.Common.Implementations | |
| parent | 0c4f78be3adb91e241e16d5acbff4d8008622486 (diff) | |
| parent | 5d8fd7ce395e3d1c00f09bb2a80eb2390ab70275 (diff) | |
Merge pull request #2477 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Common.Implementations')
| -rw-r--r-- | Emby.Common.Implementations/BaseApplicationHost.cs | 8 | ||||
| -rw-r--r-- | Emby.Common.Implementations/ScheduledTasks/ScheduledTaskWorker.cs | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/Emby.Common.Implementations/BaseApplicationHost.cs b/Emby.Common.Implementations/BaseApplicationHost.cs index 147a43fa1..f53433511 100644 --- a/Emby.Common.Implementations/BaseApplicationHost.cs +++ b/Emby.Common.Implementations/BaseApplicationHost.cs @@ -873,7 +873,13 @@ return null; /// Gets or sets a value indicating whether this instance can self update. /// </summary> /// <value><c>true</c> if this instance can self update; otherwise, <c>false</c>.</value> - public abstract bool CanSelfUpdate { get; } + public virtual bool CanSelfUpdate + { + get + { + return false; + } + } /// <summary> /// Checks for update. 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; |
