Skip to content

fix: Race condition on init & add method for overriding config options#172

Open
Pecacheu wants to merge 4 commits into
stoatchat:mainfrom
Pecacheu:fix/initrace
Open

fix: Race condition on init & add method for overriding config options#172
Pecacheu wants to merge 4 commits into
stoatchat:mainfrom
Pecacheu:fix/initrace

Conversation

@Pecacheu

Copy link
Copy Markdown

Should fix race condition upon config fetch without breaking any compatibility, while also providing a much more reliable means of overriding individual config options before the configured() flag is set, solving two related race conditions in one go.

…s before configured() is set

Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
Comment thread src/Client.ts Outdated
Comment thread src/Client.ts Outdated

@Dadadah Dadadah left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

i accidentally made the last review an approve whoops lol

Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
Comment thread src/Client.ts Outdated
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
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