fixed one bug to catch the return status.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5582 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
vanjeff 2008-07-28 09:33:02 +00:00
parent f02d0c0fe9
commit 174f03d2a2
1 changed files with 9 additions and 5 deletions

View File

@ -747,6 +747,11 @@ Mtftp4Start (
goto ON_ERROR;
}
//
// Set initial status.
//
Token->Status = EFI_NOT_READY;
//
// Build and send an initial requests
//
@ -761,16 +766,15 @@ Mtftp4Start (
if (EFI_ERROR (Status)) {
goto ON_ERROR;
}
//
// Return immediately for asynchronous operation or poll the
// instance for synchronous operation.
//
Token->Status = EFI_NOT_READY;
if (Token->Event != NULL) {
return EFI_SUCCESS;
}
//
// Return immediately for asynchronous operation or poll the
// instance for synchronous operation.
//
while (Token->Status == EFI_NOT_READY) {
This->Poll (This);
}