mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
Improve bootstrapper cancelling (#512)
This commit is contained in:
parent
5f8e1401c7
commit
67f673ae85
@ -422,6 +422,8 @@ namespace Bloxstrap
|
|||||||
App.Logger.WriteException(LOG_IDENT, ex);
|
App.Logger.WriteException(LOG_IDENT, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Dialog?.CloseBootstrapper();
|
||||||
|
|
||||||
App.Terminate(ErrorCode.ERROR_CANCELLED);
|
App.Terminate(ErrorCode.ERROR_CANCELLED);
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
@ -1313,6 +1315,9 @@ namespace Bloxstrap
|
|||||||
|
|
||||||
for (int i = 1; i <= maxTries; i++)
|
for (int i = 1; i <= maxTries; i++)
|
||||||
{
|
{
|
||||||
|
if (_cancelFired)
|
||||||
|
return;
|
||||||
|
|
||||||
int totalBytesRead = 0;
|
int totalBytesRead = 0;
|
||||||
|
|
||||||
try
|
try
|
||||||
|
Loading…
Reference in New Issue
Block a user