aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-07-12 22:56:20 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-07-12 22:56:20 -0700
commite4016c1a77290d8f61a4bdf174e336b0ad432a90 (patch)
treea84561852e612b3b8996fe8c15f253db0cc8c0ac
parentb37ffde4ed6852749545607fe7521449b52ed4ef (diff)
downloadbun-e4016c1a77290d8f61a4bdf174e336b0ad432a90.tar.gz
bun-e4016c1a77290d8f61a4bdf174e336b0ad432a90.tar.zst
bun-e4016c1a77290d8f61a4bdf174e336b0ad432a90.zip
[http] Fix assertion
-rw-r--r--src/http/async_bio.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/async_bio.zig b/src/http/async_bio.zig
index 3ee88fdbd..b9a926795 100644
--- a/src/http/async_bio.zig
+++ b/src/http/async_bio.zig
@@ -263,7 +263,7 @@ pub const Bio = struct {
const len = @intCast(u32, len_);
if (this.socket_fd == 0) {
- if (comptime Environment.allow_assert) std.debug.assert(false); // socket_fd should never be 0
+ if (comptime Environment.allow_assert) std.debug.assert(this_bio.shutdown > 0); // socket_fd should never be 0
return -1;
}