Skip to content

Wrap transactions dictionary in ThreadSafe type - #6

Merged
pmick merged 1 commit into
12.16.3-discordfrom
pmick/fixup-data-race
Jun 5, 2026
Merged

Wrap transactions dictionary in ThreadSafe type#6
pmick merged 1 commit into
12.16.3-discordfrom
pmick/fixup-data-race

Conversation

@pmick

@pmick pmick commented Jun 4, 2026

Copy link
Copy Markdown

This fixes a data race we saw where two threads were updating the transaction list at the same time. Specifically buyProduct (line 804) and listenForTransactions (line 546) in this file.

@charleschen charleschen left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

thanks for fixing this!

@pmick
pmick merged commit be3b17f into 12.16.3-discord Jun 5, 2026
1 check failed
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