From e2ffa66bf7868bb2ab873d86a466a430dad8a241 Mon Sep 17 00:00:00 2001 From: cirospaciari Date: Mon, 1 Apr 2024 12:12:44 -0300 Subject: [PATCH] dont pause --- src/io/PipeReader.zig | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/io/PipeReader.zig b/src/io/PipeReader.zig index 8192033d55..d69470dad7 100644 --- a/src/io/PipeReader.zig +++ b/src/io/PipeReader.zig @@ -532,10 +532,7 @@ pub fn WindowsPipeReader( }, .drained => { // we call drained so we know if we should stop here - const keep_reading = onReadChunk(this, slice, hasMore); - if (!keep_reading) { - this.pause(); - } + _ = onReadChunk(this, slice, hasMore); }, else => { var buffer = getBuffer(this); @@ -546,10 +543,7 @@ pub fn WindowsPipeReader( } // move cursor foward buffer.items.len += amount.result; - const keep_reading = onReadChunk(this, slice, hasMore); - if (!keep_reading) { - this.pause(); - } + _ = onReadChunk(this, slice, hasMore); }, } }