Make runner aware of http_client.queue

When connections are queued, the processing cannot be considered done.
This commit is contained in:
Karl Seguin committed 2026-05-13 17:55:39 +08:00
1 parent 2bcf9a22d5
commit c79dd2bf1f
1 file changed
+1 -1
+1 -1
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.