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

fix hello race condition #1132

Merged
merged 1 commit into from Mar 23, 2024
Merged

fix hello race condition #1132

merged 1 commit into from Mar 23, 2024

Conversation

mbostock
Copy link
Member

@mbostock mbostock commented Mar 23, 2024

The lazy config #695 introduced a race condition where we could drop a hello↑ message that is sent immediately upon connection because we were waiting for the config to load. Now we register the message event listener (and other listeners) synchronously on connect, moving the await to within the listener. Fixes #563.

@mbostock mbostock requested a review from Fil March 23, 2024 17:07
Copy link
Contributor

@Fil Fil left a comment

Choose a reason for hiding this comment

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

works for real!

@mbostock mbostock merged commit ff48120 into main Mar 23, 2024
4 checks passed
@mbostock mbostock deleted the mbostock/fix-hello-race branch March 23, 2024 17:44
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.

Vi and emacs don't properly live update in preview
2 participants