From 0f4c28c120751e1cf6e0562ef0445c7fa46cf0a4 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 28 Apr 2014 11:05:28 -0400 Subject: expose more dlna profile properties --- .../ScheduledTasks/Tasks/SystemUpdateTask.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'MediaBrowser.Common.Implementations/ScheduledTasks/Tasks/SystemUpdateTask.cs') 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 /// Task. public async Task Execute(CancellationToken cancellationToken, IProgress progress) { - if (!_appHost.CanSelfUpdate) return; - if (!ConfigurationManager.CommonConfiguration.EnableAutoUpdate) return; - EventHandler 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); -- cgit v1.2.3