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

Use unique_lock when loading 7TV badges #4402

Merged
merged 5 commits into from Feb 22, 2023
Merged

Conversation

Nerixyz
Copy link
Contributor

@Nerixyz Nerixyz commented Feb 22, 2023

Pull request checklist:

  • CHANGELOG.md was updated, if applicable

Description

While looking through the code I found that SeventvBadges used a shared_lock while writing to the locked data. This wasn't an issue, because the badges are only ever loaded once at the start.

Copy link
Member

@pajlada pajlada left a comment

Choose a reason for hiding this comment

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

Remove the addition of the const modifier, otherwise looks good to me

@pajlada pajlada enabled auto-merge (squash) February 22, 2023 11:40
@pajlada pajlada merged commit a75feba into Chatterino:master Feb 22, 2023
@Nerixyz Nerixyz deleted the fix/locking branch February 22, 2023 12:26
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.

None yet

2 participants