Skip to content

devtools: Handle disconnected error gracefully when shutting down servo#42543

Merged
simonwuelker merged 1 commit intoservo:mainfrom
simonwuelker:devtools-shutdown
Feb 11, 2026
Merged

devtools: Handle disconnected error gracefully when shutting down servo#42543
simonwuelker merged 1 commit intoservo:mainfrom
simonwuelker:devtools-shutdown

Conversation

@simonwuelker
Copy link
Copy Markdown
Contributor

When the servo window is closed while there is an active devtools connection then the devtools threads reliably panics because it can't talk to script anymore. We can simply ignore the Disconnected error when shutting down. If the script thread already shut down then there's nothing meaningful for the devtools to send anyways.

Testing: This kind of interaction is hard to test. I've not written an automated test.

@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Feb 11, 2026
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
Copy link
Copy Markdown
Member

@mrobinson mrobinson left a comment

Choose a reason for hiding this comment

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

Seems reasonable.

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Feb 11, 2026
@simonwuelker simonwuelker added this pull request to the merge queue Feb 11, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Feb 11, 2026
Merged via the queue into servo:main with commit a20e298 Feb 11, 2026
30 checks passed
@simonwuelker simonwuelker deleted the devtools-shutdown branch February 11, 2026 19:25
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Feb 11, 2026
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.

3 participants