input/nfs: cancel the pending read operation on seek

This commit is contained in:
Max Kellermann 2024-05-16 13:58:23 +02:00
parent 58e3b830e9
commit 2576e66a55
1 changed files with 4 additions and 0 deletions

View File

@ -119,6 +119,10 @@ NfsInputStream::DoSeek(offset_type new_offset)
next_offset = offset = new_offset;
SeekDone();
if (!IsIdle())
CancelRead();
DoRead();
}