mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
dont pause
This commit is contained in:
@@ -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);
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user