Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure connection and commands can be disposed in either order #32581

Merged
merged 1 commit into from
Dec 11, 2023

Conversation

ajcvickers
Copy link
Member

Fixes #22921

Note that the reports here seem to be caused by incorrect use by the same connection concurrently. This is invalid. However, made the code a bit more robust here anyway.

Fixes #22921

Note that the reports here seem to be caused by incorrect use by the same connection concurrently. This is invalid. However, made the code a bit more robust here anyway.
@ajcvickers ajcvickers requested a review from a team December 10, 2023 16:35
{
var reference = _commands[i];
var reference = commands[i];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this makes any difference

@ajcvickers ajcvickers merged commit 7176495 into main Dec 11, 2023
7 checks passed
@ajcvickers ajcvickers deleted the 231210_DefenceDefenceDefence branch December 11, 2023 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Check commands[i] is not null for avoid NRE on Dispose command
2 participants