diff options
author | 2022-06-22 06:46:51 -0700 | |
---|---|---|
committer | 2022-06-22 06:56:47 -0700 | |
commit | cf0ee829269790aac97035151d81375297e6daab (patch) | |
tree | 30f27236660b8cd6c15e865ca46de47f1fee35f8 | |
parent | 150f33c6fac5f217d349573f59a6b5f690b4c161 (diff) | |
download | bun-cf0ee829269790aac97035151d81375297e6daab.tar.gz bun-cf0ee829269790aac97035151d81375297e6daab.tar.zst bun-cf0ee829269790aac97035151d81375297e6daab.zip |
this assertion isn't good enough
-rw-r--r-- | src/http_client_async.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http_client_async.zig b/src/http_client_async.zig index f62ebeb6a..59adbfb9a 100644 --- a/src/http_client_async.zig +++ b/src/http_client_async.zig @@ -388,7 +388,7 @@ pub const AsyncHTTP = struct { } pub fn schedule(this: *AsyncHTTP, _: std.mem.Allocator, batch: *ThreadPool.Batch) void { - std.debug.assert(NetworkThread.global_loaded.load(.Monotonic) == 1); + NetworkThread.init() catch unreachable; this.state.store(.scheduled, .Monotonic); batch.push(ThreadPool.Batch.from(&this.task)); } |