mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Clarify code comment.
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
parent
a7fc5e6e12
commit
292c4ebe72
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user