Improve bootstrapper cancelling (#512)

This commit is contained in:
pizzaboxer 2023-08-23 13:36:38 +01:00
parent 5f8e1401c7
commit 67f673ae85
No known key found for this signature in database
GPG Key ID: 59D4A1DBAD0F2BA8

View File

@ -422,6 +422,8 @@ namespace Bloxstrap
App.Logger.WriteException(LOG_IDENT, ex);
}
Dialog?.CloseBootstrapper();
App.Terminate(ErrorCode.ERROR_CANCELLED);
}
#endregion
@ -1313,6 +1315,9 @@ namespace Bloxstrap
for (int i = 1; i <= maxTries; i++)
{
if (_cancelFired)
return;
int totalBytesRead = 0;
try