diff options
-rw-r--r-- | NetworkPkg/HttpBootDxe/HttpBootImpl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/NetworkPkg/HttpBootDxe/HttpBootImpl.c b/NetworkPkg/HttpBootDxe/HttpBootImpl.c index 6f10bcff39..91e934ce06 100644 --- a/NetworkPkg/HttpBootDxe/HttpBootImpl.c +++ b/NetworkPkg/HttpBootDxe/HttpBootImpl.c @@ -388,7 +388,8 @@ HttpBootGetBootFileCaller ( ImageType
);
if (!EFI_ERROR (Status) ||
- ((Status != EFI_TIMEOUT) && (Status != EFI_DEVICE_ERROR)))
+ ((Status != EFI_TIMEOUT) && (Status != EFI_DEVICE_ERROR)) ||
+ (Retries >= PcdGet32 (PcdMaxHttpResumeRetries)))
{
break;
}
|