Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Try putting room list handling behind a lock #6024

Merged
merged 3 commits into from
May 14, 2021

Conversation

turt2live
Copy link
Member

@turt2live turt2live commented May 13, 2021

Some of the logs relating to room list corruption appear to be badly timed race conditions so we'll try to linearize them here.

The diff looks complicated, but it's just wrapping handleRoomUpdate in a try/finally.

I have about a 4/10 confidence on this working, only because I can't reproduce the corruption by hand before or after the change.

Some of the logs relating to room list corruption appear to be badly timed race conditions so we'll try to linearize them here.
@turt2live turt2live requested a review from a team May 13, 2021 03:26
Copy link
Member

@t3chguy t3chguy left a comment

Choose a reason for hiding this comment

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

looks plausible - github really butchered that diff though

src/stores/room-list/algorithms/Algorithm.ts Outdated Show resolved Hide resolved
src/utils/MultiLock.ts Outdated Show resolved Hide resolved
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants