update components

This commit is contained in:
Luke Pulverenti
2016-06-19 12:53:43 -04:00
parent 759f5a8560
commit 7627c6707d
12 changed files with 171 additions and 70 deletions

View File

@@ -1098,8 +1098,10 @@ namespace MediaBrowser.Server.Startup.Common
/// Gets the system status.
/// </summary>
/// <returns>SystemInfo.</returns>
public SystemInfo GetSystemInfo()
public async Task<SystemInfo> GetSystemInfo()
{
var localAddress = await GetLocalApiUrl().ConfigureAwait(false);
return new SystemInfo
{
HasPendingRestart = HasPendingRestart,
@@ -1130,7 +1132,7 @@ namespace MediaBrowser.Server.Startup.Common
IsRunningAsService = IsRunningAsService,
SupportsRunningAsService = SupportsRunningAsService,
ServerName = FriendlyName,
LocalAddress = GetLocalApiUrl().Result,
LocalAddress = localAddress,
SupportsLibraryMonitor = SupportsLibraryMonitor
};
}