From 67f673ae85882112ec408da262c31fdeae7be0af Mon Sep 17 00:00:00 2001 From: pizzaboxer Date: Wed, 23 Aug 2023 13:36:38 +0100 Subject: [PATCH] Improve bootstrapper cancelling (#512) --- Bloxstrap/Bootstrapper.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Bloxstrap/Bootstrapper.cs b/Bloxstrap/Bootstrapper.cs index 34a4b75..303190e 100644 --- a/Bloxstrap/Bootstrapper.cs +++ b/Bloxstrap/Bootstrapper.cs @@ -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