|
|
|
@ -130,7 +130,7 @@ namespace MediaBrowser.Server.Implementations.Connect
|
|
|
|
|
UpdateConnectInfo();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private async void UpdateConnectInfo()
|
|
|
|
|
private async Task UpdateConnectInfo()
|
|
|
|
|
{
|
|
|
|
|
await _operationLock.WaitAsync().ConfigureAwait(false);
|
|
|
|
|
|
|
|
|
@ -399,6 +399,10 @@ namespace MediaBrowser.Server.Implementations.Connect
|
|
|
|
|
throw new ArgumentNullException("connectUsername");
|
|
|
|
|
}
|
|
|
|
|
if (string.IsNullOrWhiteSpace(ConnectServerId))
|
|
|
|
|
{
|
|
|
|
|
await UpdateConnectInfo().ConfigureAwait(false);
|
|
|
|
|
}
|
|
|
|
|
if (string.IsNullOrWhiteSpace(ConnectServerId))
|
|
|
|
|
{
|
|
|
|
|
throw new ArgumentNullException("ConnectServerId");
|
|
|
|
|
}
|
|
|
|
@ -492,6 +496,10 @@ namespace MediaBrowser.Server.Implementations.Connect
|
|
|
|
|
throw new ArgumentNullException("connectUsername");
|
|
|
|
|
}
|
|
|
|
|
if (string.IsNullOrWhiteSpace(ConnectServerId))
|
|
|
|
|
{
|
|
|
|
|
await UpdateConnectInfo().ConfigureAwait(false);
|
|
|
|
|
}
|
|
|
|
|
if (string.IsNullOrWhiteSpace(ConnectServerId))
|
|
|
|
|
{
|
|
|
|
|
throw new ArgumentNullException("ConnectServerId");
|
|
|
|
|
}
|
|
|
|
|