Просмотр исходного кода

Must request data before anything actually happens...

tags/v0.9.3
Michael Brown 18 лет назад
Родитель
Сommit
7d2535779c
1 измененных файлов: 4 добавлений и 0 удалений
  1. 4
    0
      src/core/posix_io.c

+ 4
- 0
src/core/posix_io.c Просмотреть файл

224
 	if ( ( rc = xfer_open_uri ( &file->xfer, uri_string ) ) != 0 )
224
 	if ( ( rc = xfer_open_uri ( &file->xfer, uri_string ) ) != 0 )
225
 		goto err;
225
 		goto err;
226
 
226
 
227
+	/* Request data */
228
+	if ( ( rc = xfer_request_all ( &file->xfer ) ) != 0 )
229
+		goto err;
230
+
227
 	/* Wait for open to succeed or fail */
231
 	/* Wait for open to succeed or fail */
228
 	while ( list_empty ( &file->data ) ) {
232
 	while ( list_empty ( &file->data ) ) {
229
 		step();
233
 		step();

Загрузка…
Отмена
Сохранить