Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash when closing panes very quickly (#17450)
#17358 introduced a bug where if you open/close panes very rapidly Terminal will crash. This was because `_content` was being set to `null` and then a `Close` event was being emitted, but several functions attempt to access the pane's `_content` as part of the close routine. For example, `TerminalTab` tries to update the `TaskbarProgress` every time a pane is closed and as part of that update sequence it queries the pane - which has `null` content now - for the taskbar progress, resulting in a crash. This PR fixes that crash. Refs #17358 (cherry picked from commit 5d46e31) Service-Card-Id: 92776947 Service-Version: 1.21
- Loading branch information