From 2576e66a55072f3896c549febf0dbcf244d2e0dc Mon Sep 17 00:00:00 2001 From: Max Kellermann <max.kellermann@gmail.com> Date: Thu, 16 May 2024 13:58:23 +0200 Subject: [PATCH] input/nfs: cancel the pending read operation on seek --- src/input/plugins/NfsInputPlugin.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/input/plugins/NfsInputPlugin.cxx b/src/input/plugins/NfsInputPlugin.cxx index 7ab73dfa1..e48747a0a 100644 --- a/src/input/plugins/NfsInputPlugin.cxx +++ b/src/input/plugins/NfsInputPlugin.cxx @@ -119,6 +119,10 @@ NfsInputStream::DoSeek(offset_type new_offset) next_offset = offset = new_offset; SeekDone(); + + if (!IsIdle()) + CancelRead(); + DoRead(); }