shutdown queued req on robots shutdown

This commit is contained in:
Muki Kiboigo
2026-02-09 15:24:35 -08:00
parent 65c9b2a5f7
commit e1850440b0

View File

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