OcBootManagementLib: Do not wait on successful execution
@@ -423,7 +423,12 @@ OcRunSimpleBootPicker (
gImageHandle
);
- gBS->Stall (5000000);
+ //
+ // Do not wait on successful return code.
+ //
+ if (!EFI_ERROR (Status)) {
+ gBS->Stall (SECONDS_TO_MICROSECONDS (5));
+ }
}
OcFreeBootEntries (Entries, EntryCount);
