Fix exception being throw in Dispose()

This commit is contained in:
Michael Bucari-Tovo
2025-11-25 12:24:07 -07:00
parent c30e149a36
commit af85ea9219

View File

@@ -209,6 +209,12 @@ namespace AaxDecrypter
}
}
}
catch (Exception ex)
{
//Don't throw from DownloadTask.
//This task gets awaited in Dispose() and we don't want to have an unhandled exception there.
Serilog.Log.Error(ex, "An error was encountered during the download process.");
}
finally
{
_writeFile.Dispose();