From e1850440b0ba9b2e7983246d5098c6a18765c0b0 Mon Sep 17 00:00:00 2001 From: Muki Kiboigo Date: Mon, 9 Feb 2026 15:24:35 -0800 Subject: [PATCH] shutdown queued req on robots shutdown --- src/http/Client.zig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/http/Client.zig b/src/http/Client.zig index 90bba041..26419b6a 100644 --- a/src/http/Client.zig +++ b/src/http/Client.zig @@ -436,6 +436,12 @@ fn robotsShutdownCallback(ctx_ptr: *anyopaque) void { ctx.robots_url, ) orelse @panic("Client.robotsErrorCallback empty queue"); defer queued.value.deinit(ctx.client.allocator); + + for (queued.value.items) |queued_req| { + if (queued_req.shutdown_callback) |shutdown_cb| { + shutdown_cb(queued_req.ctx); + } + } } fn waitForInterceptedResponse(self: *Client, transfer: *Transfer) !bool {