input/buffering: close input if buffered completely

This commit is contained in:
Max Kellermann 2019-05-16 22:34:11 +02:00
parent 0626e3d21e
commit 1acb9bcedb

View File

@ -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 */