Skip to content

Commit

Permalink
Improve bootstrapper cancelling (#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzaboxer committed Aug 23, 2023
1 parent 5f8e140 commit 67f673a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Bloxstrap/Bootstrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,8 @@ public void CancelInstall()
App.Logger.WriteException(LOG_IDENT, ex);
}

Dialog?.CloseBootstrapper();

App.Terminate(ErrorCode.ERROR_CANCELLED);
}
#endregion
Expand Down Expand Up @@ -1313,6 +1315,9 @@ private async Task DownloadPackage(Package package)

for (int i = 1; i <= maxTries; i++)
{
if (_cancelFired)
return;

int totalBytesRead = 0;

try
Expand Down

0 comments on commit 67f673a

Please sign in to comment.