From 4a55e3e8bd88503f40ac53c60297fb2b1d768d02 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 29 Jul 2024 23:02:59 +0200 Subject: [PATCH] input/thread: check buffer.empty() in IsEOF() --- src/input/ThreadInputStream.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input/ThreadInputStream.cxx b/src/input/ThreadInputStream.cxx index 5491cb4ed..dbe3be20b 100644 --- a/src/input/ThreadInputStream.cxx +++ b/src/input/ThreadInputStream.cxx @@ -149,5 +149,5 @@ ThreadInputStream::IsEOF() const noexcept { assert(!thread.IsInside()); - return eof; + return eof && buffer.empty(); }