Use UnsafeRegister for the handshake (#10204)

This commit is contained in:
David Fowler 2019-05-14 11:13:45 -07:00 committed by Justin Kotalik
parent bde1b16498
commit dd2721f5ca
1 changed files with 1 additions and 1 deletions

View File

@ -396,7 +396,7 @@ namespace Microsoft.AspNetCore.SignalR
var input = Input;
using (var cts = new CancellationTokenSource())
using (var registration = cts.Token.Register(_cancelReader, input))
using (var registration = cts.Token.UnsafeRegister(_cancelReader, input))
{
if (!Debugger.IsAttached)
{