Make runner aware of http_client.queue

When connections are queued, the processing cannot be considered done.
This commit is contained in:
Karl Seguin
2026-05-13 16:26:31 +08:00
parent 2bcf9a22d5
commit c79dd2bf1f

View File

@@ -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.