Skip to content

Commit 2bc2a5a

Browse files
committed
Document
1 parent d514db2 commit 2bc2a5a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cascadia/TerminalApp/TerminalPaneContent.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ namespace winrt::TerminalApp::implementation
6666
}
6767
void TerminalPaneContent::Close()
6868
{
69+
// We deliberately remove the event handlers before closing the control.
70+
// This is to prevent re-entrancy issues, pointless callbacks, etc.
6971
_removeControlEvents();
7072

7173
_control.Close();

0 commit comments

Comments
 (0)