aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeuheit <38368299+Neuheit@users.noreply.github.com>2022-12-08 16:16:06 -0500
committerGitHub <noreply@github.com>2022-12-08 16:16:06 -0500
commit93fe47c7cb7a3aa5eb8504edc2fd4f27c4824993 (patch)
treeefa2f87854200cf14bbbdee91b9da8ee9ae581b6
parent292c4ebe72d293184f7a60f68f5ad76296539b89 (diff)
Clarify code comment.
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
-rw-r--r--Jellyfin.Networking/HappyEyeballs/HttpClientExtension.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Jellyfin.Networking/HappyEyeballs/HttpClientExtension.cs b/Jellyfin.Networking/HappyEyeballs/HttpClientExtension.cs
index ddbf841b0..59e6956c7 100644
--- a/Jellyfin.Networking/HappyEyeballs/HttpClientExtension.cs
+++ b/Jellyfin.Networking/HappyEyeballs/HttpClientExtension.cs
@@ -60,9 +60,9 @@ namespace Jellyfin.Networking.HappyEyeballs
using var cancelIPv6 = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
var tryConnectAsyncIPv6 = AttemptConnection(AddressFamily.InterNetworkV6, context, cancelIPv6.Token);
- //This connect task uses GetAwaiter().GetResult() as the appropriate task has already been completed.
- //This results in improved exception handling.
- //See https://github.com/dotnet/corefx/pull/29792/files#r189415885 for more details.
+ // GetAwaiter().GetResult() is used instead of .Result as this results in improved exception handling.
+ // The tasks have already been completed.
+ // See https://github.com/dotnet/corefx/pull/29792/files#r189415885 for more details.
if (await Task.WhenAny(tryConnectAsyncIPv6, Task.Delay(200, cancelIPv6.Token)).ConfigureAwait(false) == tryConnectAsyncIPv6 && tryConnectAsyncIPv6.IsCompletedSuccessfully)
{
cancelIPv6.Cancel();