input/buffering: close input if buffered completely
This commit is contained in:
parent
0626e3d21e
commit
1acb9bcedb
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user