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

Fix race condition in CMClient.Send #913

Merged
merged 1 commit into from
Sep 1, 2020
Merged

Fix race condition in CMClient.Send #913

merged 1 commit into from
Sep 1, 2020

Conversation

xPaw
Copy link
Member

@xPaw xPaw commented Sep 1, 2020

My cm monitor app managed to crash there with msg.SteamID being set to null.

Logged out and disconnected callback set it to null, so I assume it can race with that, although I'm not sure why.

While this isn't the most correct fix, there's no reason to access these properties twice.

@azuisleet azuisleet merged commit 6fd97cb into SteamRE:master Sep 1, 2020
@xPaw xPaw deleted the xpaw/send-race branch July 30, 2021 08:06
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.

2 participants