diff --git a/src/input/BufferingInputStream.cxx b/src/input/BufferingInputStream.cxx index 08e62ffb9..20676ba70 100644 --- a/src/input/BufferingInputStream.cxx +++ b/src/input/BufferingInputStream.cxx @@ -196,8 +196,8 @@ BufferingInputStream::RunThread() noexcept size_t new_offset = FindFirstHole(); if (new_offset == INVALID_OFFSET) { /* the file has been read completely */ - wake_cond.wait(lock); - continue; + input.reset(); + break; } /* seek to the first hole */