Added ignore for unexpected dispose errors

This commit is contained in:
Marcel Baumgartner
2023-07-02 20:51:08 +02:00
parent 016f50fb1c
commit 5e592ccdcb

View File

@@ -39,7 +39,15 @@
public async void Dispose() public async void Dispose()
{ {
await Xterm.DisposeAsync(); try
{
await Xterm.DisposeAsync();
}
catch (Exception)
{
// ignore dispose errors. They occur when the tab closes unexpectedly
// so we can ignore them
}
} }
private async void OnFirstRender() private async void OnFirstRender()