We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99e056f commit 32bdaf3Copy full SHA for 32bdaf3
src/SignalR/common/Http.Connections/src/Internal/HttpConnectionContext.cs
@@ -445,7 +445,15 @@ internal async Task<bool> CancelPreviousPoll(HttpContext context)
445
lock (_stateLock)
446
{
447
// Need to sync cts access with DisposeAsync as that will dispose the cts
448
- cts = Status == HttpConnectionStatus.Disposed ? null : Cancellation;
+ if (Status == HttpConnectionStatus.Disposed)
449
+ {
450
+ cts = null;
451
+ }
452
+ else
453
454
+ cts = Cancellation;
455
+ Cancellation = null;
456
457
}
458
459
using (cts)
0 commit comments