diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-04-28 11:05:28 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-04-28 11:05:28 -0400 |
| commit | 0f4c28c120751e1cf6e0562ef0445c7fa46cf0a4 (patch) | |
| tree | 3688a8a031542fee4e31a52ee20df1057c69eb43 /MediaBrowser.Common.Implementations/ScheduledTasks/Tasks/SystemUpdateTask.cs | |
| parent | 20507355eb045bc8337ca4697e3a8b906feb82be (diff) | |
expose more dlna profile properties
Diffstat (limited to 'MediaBrowser.Common.Implementations/ScheduledTasks/Tasks/SystemUpdateTask.cs')
| -rw-r--r-- | MediaBrowser.Common.Implementations/ScheduledTasks/Tasks/SystemUpdateTask.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/MediaBrowser.Common.Implementations/ScheduledTasks/Tasks/SystemUpdateTask.cs b/MediaBrowser.Common.Implementations/ScheduledTasks/Tasks/SystemUpdateTask.cs index cf22f8e9a..641d402bd 100644 --- a/MediaBrowser.Common.Implementations/ScheduledTasks/Tasks/SystemUpdateTask.cs +++ b/MediaBrowser.Common.Implementations/ScheduledTasks/Tasks/SystemUpdateTask.cs @@ -67,9 +67,6 @@ namespace MediaBrowser.Common.Implementations.ScheduledTasks.Tasks /// <returns>Task.</returns> public async Task Execute(CancellationToken cancellationToken, IProgress<double> progress) { - if (!_appHost.CanSelfUpdate) return; - if (!ConfigurationManager.CommonConfiguration.EnableAutoUpdate) return; - EventHandler<double> innerProgressHandler = (sender, e) => progress.Report(e * .1); // Create a progress object for the update check @@ -92,6 +89,8 @@ namespace MediaBrowser.Common.Implementations.ScheduledTasks.Tasks cancellationToken.ThrowIfCancellationRequested(); + if (!_appHost.CanSelfUpdate) return; + if (ConfigurationManager.CommonConfiguration.EnableAutoUpdate) { Logger.Info("Update Revision {0} available. Updating...", updateInfo.AvailableVersion); |
