diff options
| author | Neuheit <38368299+Neuheit@users.noreply.github.com> | 2022-12-08 16:15:36 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-08 16:15:36 -0500 |
| commit | 292c4ebe72d293184f7a60f68f5ad76296539b89 (patch) | |
| tree | f6d0369263a8e90e66b831c3267bb222289ba78c | |
| parent | a7fc5e6e12e2330344640c92cc4d0afc36c74fe2 (diff) | |
Clarify code comment.
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
| -rw-r--r-- | Jellyfin.Networking/HappyEyeballs/HttpClientExtension.cs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Jellyfin.Networking/HappyEyeballs/HttpClientExtension.cs b/Jellyfin.Networking/HappyEyeballs/HttpClientExtension.cs index add70c9cd..ddbf841b0 100644 --- a/Jellyfin.Networking/HappyEyeballs/HttpClientExtension.cs +++ b/Jellyfin.Networking/HappyEyeballs/HttpClientExtension.cs @@ -72,8 +72,6 @@ namespace Jellyfin.Networking.HappyEyeballs using var cancelIPv4 = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); var tryConnectAsyncIPv4 = AttemptConnection(AddressFamily.InterNetwork, context, cancelIPv4.Token); - //Both connect tasks use GetAwaiter().GetResult() as the appropriate task has already been completed. - //This results in improved exception handling. if (await Task.WhenAny(tryConnectAsyncIPv6, tryConnectAsyncIPv4).ConfigureAwait(false) == tryConnectAsyncIPv6) { if (tryConnectAsyncIPv6.IsCompletedSuccessfully) |
