Use UnsafeRegister for the handshake (#10204)
This commit is contained in:
parent
bde1b16498
commit
dd2721f5ca
|
|
@ -396,7 +396,7 @@ namespace Microsoft.AspNetCore.SignalR
|
||||||
var input = Input;
|
var input = Input;
|
||||||
|
|
||||||
using (var cts = new CancellationTokenSource())
|
using (var cts = new CancellationTokenSource())
|
||||||
using (var registration = cts.Token.Register(_cancelReader, input))
|
using (var registration = cts.Token.UnsafeRegister(_cancelReader, input))
|
||||||
{
|
{
|
||||||
if (!Debugger.IsAttached)
|
if (!Debugger.IsAttached)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue