Fix ODE race with cancellationtokensource (#2721)
This commit is contained in:
parent
90606338fb
commit
810c7cf9ad
|
|
@ -314,8 +314,7 @@ namespace Microsoft.AspNetCore.Http.Connections.Internal
|
||||||
|
|
||||||
connection.Status = HttpConnectionStatus.Inactive;
|
connection.Status = HttpConnectionStatus.Inactive;
|
||||||
|
|
||||||
// Dispose the cancellation token
|
connection.Cancellation?.Cancel();
|
||||||
connection.Cancellation?.Dispose();
|
|
||||||
|
|
||||||
connection.Cancellation = null;
|
connection.Cancellation = null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue