Fix ODE race with cancellationtokensource (#2721)

This commit is contained in:
BrennanConroy 2018-08-02 15:24:26 -07:00 committed by GitHub
parent 90606338fb
commit 810c7cf9ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -314,8 +314,7 @@ namespace Microsoft.AspNetCore.Http.Connections.Internal
connection.Status = HttpConnectionStatus.Inactive;
// Dispose the cancellation token
connection.Cancellation?.Dispose();
connection.Cancellation?.Cancel();
connection.Cancellation = null;
}