aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bun.js/webcore/streams.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun.js/webcore/streams.zig b/src/bun.js/webcore/streams.zig
index b5b863e6a..ef86a1a16 100644
--- a/src/bun.js/webcore/streams.zig
+++ b/src/bun.js/webcore/streams.zig
@@ -3633,7 +3633,7 @@ pub const FIFO = struct {
return;
}
- if (this.buf.len == 0 and available_to_read != 0) {
+ if (this.buf.len == 0 and (available_to_read orelse 1) != 0) {
return;
}