Skip to content

Comments

Fix race condition in CMClient.Send#913

Merged
azuisleet merged 1 commit intoSteamRE:masterfrom
xPaw:xpaw/send-race
Sep 1, 2020
Merged

Fix race condition in CMClient.Send#913
azuisleet merged 1 commit intoSteamRE:masterfrom
xPaw:xpaw/send-race

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