diff --git a/MediaBrowser.Server.Startup.Common/ApplicationHost.cs b/MediaBrowser.Server.Startup.Common/ApplicationHost.cs
index 29da81e9a7..d1c920f8a5 100644
--- a/MediaBrowser.Server.Startup.Common/ApplicationHost.cs
+++ b/MediaBrowser.Server.Startup.Common/ApplicationHost.cs
@@ -1307,7 +1307,7 @@ namespace MediaBrowser.Server.Startup.Common
/// The cancellation token.
/// The progress.
/// Task{CheckForUpdateResult}.
- public override Task CheckForApplicationUpdate(CancellationToken cancellationToken, IProgress progress)
+ public override async Task CheckForApplicationUpdate(CancellationToken cancellationToken, IProgress 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;
}
///