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();
|
size_t new_offset = FindFirstHole();
|
||||||
if (new_offset == INVALID_OFFSET) {
|
if (new_offset == INVALID_OFFSET) {
|
||||||
/* the file has been read completely */
|
/* the file has been read completely */
|
||||||
wake_cond.wait(lock);
|
input.reset();
|
||||||
continue;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* seek to the first hole */
|
/* seek to the first hole */
|
||||||
|
Loading…
Reference in New Issue
Block a user