mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 08:04:07 +02:00
NetworkPkg/HttpBootDxe: Report download error when resume attempts fail
When all resume attempts to continue an interrupted NBP file download have failed, report the failure status to the caller. Original implementation was returning success when number of retries reaches the limit defined by PcdMaxHttpResumeRetries. Signed-off-by: Leandro Gustavo Biss Becker <lbecker@positivo.com.br>
This commit is contained in:
parent
081cf576a2
commit
b3efbda166
@ -388,7 +388,8 @@ HttpBootGetBootFileCaller (
|
|||||||
ImageType
|
ImageType
|
||||||
);
|
);
|
||||||
if (!EFI_ERROR (Status) ||
|
if (!EFI_ERROR (Status) ||
|
||||||
((Status != EFI_TIMEOUT) && (Status != EFI_DEVICE_ERROR)))
|
((Status != EFI_TIMEOUT) && (Status != EFI_DEVICE_ERROR)) ||
|
||||||
|
(Retries >= PcdGet32 (PcdMaxHttpResumeRetries)))
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user