diff options
Diffstat (limited to 'src/http_client_async.zig')
-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)); } |