Don't pre-maturely close the input buffer

This commit is contained in:
Jarred Sumner
2022-11-24 03:54:32 -08:00
parent ffacc1d02d
commit d68f44d604

View File

@@ -3633,6 +3633,10 @@ pub const FIFO = struct {
return;
}
if (this.buf.len == 0 and available_to_read != 0) {
return;
}
const read_result = this.read(this.buf, available_to_read);
if (read_result == .read and read_result.read.len == 0) {
if (this.poll_ref != null)