net: reset net->stall in grub_net_seek_real
If we open new connection, we need to reset stall indication, otherwise nothing will ever be polled (low level code rely on this field being zero when establishing connection).
This commit is contained in:
parent
13f7ead3a1
commit
e045af148a
1 changed files with 1 additions and 0 deletions
|
@ -1672,6 +1672,7 @@ grub_net_seek_real (struct grub_file *file, grub_off_t offset)
|
||||||
file->device->net->packs.last = NULL;
|
file->device->net->packs.last = NULL;
|
||||||
file->device->net->offset = 0;
|
file->device->net->offset = 0;
|
||||||
file->device->net->eof = 0;
|
file->device->net->eof = 0;
|
||||||
|
file->device->net->stall = 0;
|
||||||
err = file->device->net->protocol->open (file, file->device->net->name);
|
err = file->device->net->protocol->open (file, file->device->net->name);
|
||||||
if (err)
|
if (err)
|
||||||
return err;
|
return err;
|
||||||
|
|
Loading…
Reference in a new issue