Skip to content

Commit 60c3697

Browse files
committed
Nit
1 parent 823a5f4 commit 60c3697

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Servers/Kestrel/Core/src/Internal/Infrastructure/TransportConnectionManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ private static Task CancellationTokenAsTask(CancellationToken token)
9595
return Task.CompletedTask;
9696
}
9797

98-
var tcs = new TaskCompletionSource<object>(TaskCreationOptions.RunContinuationsAsynchronously);
99-
token.Register(() => tcs.SetResult(null!));
98+
var tcs = new TaskCompletionSource<object?>(TaskCreationOptions.RunContinuationsAsynchronously);
99+
token.Register(() => tcs.SetResult(null));
100100
return tcs.Task;
101101
}
102102
}

0 commit comments

Comments
 (0)