diff options
| author | 2022-07-12 22:56:20 -0700 | |
|---|---|---|
| committer | 2022-07-12 22:56:20 -0700 | |
| commit | e4016c1a77290d8f61a4bdf174e336b0ad432a90 (patch) | |
| tree | a84561852e612b3b8996fe8c15f253db0cc8c0ac /src | |
| parent | b37ffde4ed6852749545607fe7521449b52ed4ef (diff) | |
| download | bun-e4016c1a77290d8f61a4bdf174e336b0ad432a90.tar.gz bun-e4016c1a77290d8f61a4bdf174e336b0ad432a90.tar.zst bun-e4016c1a77290d8f61a4bdf174e336b0ad432a90.zip | |
[http] Fix assertion
Diffstat (limited to 'src')
| -rw-r--r-- | src/http/async_bio.zig | 2 |
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; } |
