Skip to content

Commit

Permalink
Fix ODE race with cancellationtokensource (#2721)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrennanConroy authored Aug 2, 2018
1 parent 9060633 commit 810c7cf
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,7 @@ private async Task ExecuteAsync(HttpContext context, ConnectionDelegate connecti

connection.Status = HttpConnectionStatus.Inactive;

// Dispose the cancellation token
connection.Cancellation?.Dispose();
connection.Cancellation?.Cancel();

connection.Cancellation = null;
}
Expand Down

0 comments on commit 810c7cf

Please sign in to comment.