Skip to content

Fix crash when sending events to client.js during hot restart #1531

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

Merged
merged 4 commits into from
Mar 10, 2022

Conversation

annagrin
Copy link
Contributor

@annagrin annagrin commented Mar 9, 2022

If an event is sent to the injected client during hot restart, we might encounter a race where the response is added to a closed sink and injected client stops working.

Catch and ignore those errors so the hot restart can continue.

Closes: #1530

@annagrin annagrin requested review from grouma and elliette March 9, 2022 03:20
@annagrin annagrin merged commit 5b1dec5 into dart-lang:master Mar 10, 2022
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.

Injected client crash on hot restart
3 participants