[PR #19296] Avoid reentrancy issues when dropping AppHost #31787

Open
opened 2026-01-31 09:49:35 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/19296

State: closed
Merged: Yes


tl;dr: ~Apphost() may pump the message loop.
That's no bueno. See comments in the diff.

Additionally, this PR enables _assertIsMainThread in
release to trace down mysterious crashes in those builds.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/19296 **State:** closed **Merged:** Yes --- tl;dr: ~Apphost() may pump the message loop. That's no bueno. See comments in the diff. Additionally, this PR enables `_assertIsMainThread` in release to trace down mysterious crashes in those builds.
claunia added the pull-request label 2026-01-31 09:49:35 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#31787