aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-06-02 23:16:39 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-06-02 23:16:39 -0400
commit6f7d7e61b911518aadcd6dc0b061d0eafd8a7acf (patch)
tree5b81a534a32212eb3350e162631eae1851a76fb4 /MediaBrowser.Server.Implementations/Connect/ConnectManager.cs
parent92ce7c0fa84055dd90d33fe2fa5c1b78274047a8 (diff)
add logging to connect reporting
Diffstat (limited to 'MediaBrowser.Server.Implementations/Connect/ConnectManager.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Connect/ConnectManager.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs b/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs
index 2d39f760e..048287faa 100644
--- a/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs
+++ b/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs
@@ -130,7 +130,7 @@ namespace MediaBrowser.Server.Implementations.Connect
UpdateConnectInfo();
}
- private async void UpdateConnectInfo()
+ private async Task UpdateConnectInfo()
{
await _operationLock.WaitAsync().ConfigureAwait(false);
@@ -400,6 +400,10 @@ namespace MediaBrowser.Server.Implementations.Connect
}
if (string.IsNullOrWhiteSpace(ConnectServerId))
{
+ await UpdateConnectInfo().ConfigureAwait(false);
+ }
+ if (string.IsNullOrWhiteSpace(ConnectServerId))
+ {
throw new ArgumentNullException("ConnectServerId");
}
@@ -493,6 +497,10 @@ namespace MediaBrowser.Server.Implementations.Connect
}
if (string.IsNullOrWhiteSpace(ConnectServerId))
{
+ await UpdateConnectInfo().ConfigureAwait(false);
+ }
+ if (string.IsNullOrWhiteSpace(ConnectServerId))
+ {
throw new ArgumentNullException("ConnectServerId");
}