[PR #15231] Remove the window thread from the list of threads before nulling the AppHost #30518

Closed
opened 2026-01-31 09:41:19 +00:00 by claunia · 0 comments
Owner

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

State: closed
Merged: Yes


See https://github.com/microsoft/terminal/issues/14957#issuecomment-1520522722.

I think there's a race here that lets the WindowEmperor muck around with the window after it's done, but before we remove it from our list of threads.

This should remove the thread from the list, then null out the AppHost, then flush the XAML queue, preventing the A/V.

Closes MSFT:43995981

**Original Pull Request:** https://github.com/microsoft/terminal/pull/15231 **State:** closed **Merged:** Yes --- See https://github.com/microsoft/terminal/issues/14957#issuecomment-1520522722. I think there's a race here that lets the WindowEmperor muck around with the window after it's done, but before we remove it from our list of threads. This _should_ remove the thread from the list, _then_ null out the AppHost, then flush the XAML queue, preventing the A/V. Closes MSFT:43995981
claunia added the pull-request label 2026-01-31 09:41:19 +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#30518