From c79dd2bf1f763380ccab2617a17dd1a3dcbfbc32 Mon Sep 17 00:00:00 2001 From: Karl Seguin Date: Wed, 13 May 2026 16:26:31 +0800 Subject: [PATCH] Make runner aware of http_client.queue When connections are queued, the processing cannot be considered done. --- src/browser/Runner.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/browser/Runner.zig b/src/browser/Runner.zig index c6da4d86..7a343ac3 100644 --- a/src/browser/Runner.zig +++ b/src/browser/Runner.zig @@ -212,7 +212,7 @@ fn _tick(self: *Runner, comptime is_cdp: bool, opts: TickOpts) !CDPTickResult { }, } - if (http_active == 0 and http_client.ws_active == 0 and (comptime is_cdp == false)) { + if (http_active == 0 and http_client.ws_active == 0 and http_client.queue.first == null and (comptime is_cdp == false)) { // we don't need to consider http_client.intercepted here // because is_cdp is false, and that can only be // the case when interception isn't possible.