aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-01-09 12:17:35 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-01-09 12:17:35 -0500
commit6e28c722880b9fb6fd007da2ab9614e98b72579a (patch)
treee1561876396649c0d22cb4e9e3a0e83802fd3394
parent82c4297347158a3aafec2c87a1ef4a31baedcd71 (diff)
Set HasUpdateAvailable
-rw-r--r--MediaBrowser.Server.Startup.Common/ApplicationHost.cs10
1 files changed, 7 insertions, 3 deletions
diff --git a/MediaBrowser.Server.Startup.Common/ApplicationHost.cs b/MediaBrowser.Server.Startup.Common/ApplicationHost.cs
index 29da81e9a..d1c920f8a 100644
--- a/MediaBrowser.Server.Startup.Common/ApplicationHost.cs
+++ b/MediaBrowser.Server.Startup.Common/ApplicationHost.cs
@@ -1307,7 +1307,7 @@ namespace MediaBrowser.Server.Startup.Common
/// <param name="cancellationToken">The cancellation token.</param>
/// <param name="progress">The progress.</param>
/// <returns>Task{CheckForUpdateResult}.</returns>
- public override Task<CheckForUpdateResult> CheckForApplicationUpdate(CancellationToken cancellationToken, IProgress<double> progress)
+ public override async Task<CheckForUpdateResult> CheckForApplicationUpdate(CancellationToken cancellationToken, IProgress<double> progress)
{
var cacheLength = TimeSpan.FromHours(12);
var updateLevel = ConfigurationManager.CommonConfiguration.SystemUpdateLevel;
@@ -1321,8 +1321,12 @@ namespace MediaBrowser.Server.Startup.Common
cacheLength = TimeSpan.FromMinutes(5);
}
- return new GithubUpdater(HttpClient, JsonSerializer, cacheLength).CheckForUpdateResult("MediaBrowser", "Emby", ApplicationVersion, updateLevel, _releaseAssetFilename,
- "MBServer", "Mbserver.zip", cancellationToken);
+ var result = await new GithubUpdater(HttpClient, JsonSerializer, cacheLength).CheckForUpdateResult("MediaBrowser", "Emby", ApplicationVersion, updateLevel, _releaseAssetFilename,
+ "MBServer", "Mbserver.zip", cancellationToken).ConfigureAwait(false);
+
+ HasUpdateAvailable = result.IsUpdateAvailable;
+
+ return result;
}
/// <summary>