mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 12:44:43 +00:00
shutdown queued req on robots shutdown
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user