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

@@ -38,9 +38,17 @@
}
public async void Dispose()
{
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()
{