mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 04:34:44 +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,
|
ctx.robots_url,
|
||||||
) orelse @panic("Client.robotsErrorCallback empty queue");
|
) orelse @panic("Client.robotsErrorCallback empty queue");
|
||||||
defer queued.value.deinit(ctx.client.allocator);
|
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 {
|
fn waitForInterceptedResponse(self: *Client, transfer: *Transfer) !bool {
|
||||||
|
|||||||
Reference in New Issue
Block a user