mirror of https://github.com/ipxe/ipxe.git
Must request data before anything actually happens...
parent
b63b14ff32
commit
7d2535779c
|
@ -224,6 +224,10 @@ int open ( const char *uri_string ) {
|
||||||
if ( ( rc = xfer_open_uri ( &file->xfer, uri_string ) ) != 0 )
|
if ( ( rc = xfer_open_uri ( &file->xfer, uri_string ) ) != 0 )
|
||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
|
/* Request data */
|
||||||
|
if ( ( rc = xfer_request_all ( &file->xfer ) ) != 0 )
|
||||||
|
goto err;
|
||||||
|
|
||||||
/* Wait for open to succeed or fail */
|
/* Wait for open to succeed or fail */
|
||||||
while ( list_empty ( &file->data ) ) {
|
while ( list_empty ( &file->data ) ) {
|
||||||
step();
|
step();
|
||||||
|
|
Loading…
Reference in New Issue