Skip to content

Commit

Permalink
Fix break
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Engel authored Oct 4, 2022
1 parent c0ff72b commit 2b834c5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4734,7 +4734,7 @@ public override Task<bool> ReadAsync(CancellationToken cancellationToken)
}

// Register first to catch any already expired tokens to be able to trigger cancellation event.
IDisposable registration = default;
CancellationTokenRegistration registration = default;
if (cancellationToken.CanBeCanceled)
{
registration = cancellationToken.Register(SqlCommand.s_cancelIgnoreFailure, _command);
Expand Down

0 comments on commit 2b834c5

Please sign in to comment.