mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 01:24:44 +01:00
add logging to connect reporting
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user