mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-06-12 10:06:12 -04:00
properly deinit transfer on runNextTick
This commit is contained in:
@@ -82,6 +82,8 @@ fn request(ptr: *anyopaque, transfer: *Transfer) anyerror!void {
|
||||
|
||||
try transfer.client.runNextTick(transfer.id, ctx, struct {
|
||||
fn run(t: *Transfer, ctx_ptr: *anyopaque) anyerror!void {
|
||||
defer t.deinit();
|
||||
|
||||
const c: *CacheServeCtx = @ptrCast(@alignCast(ctx_ptr));
|
||||
serveFromCache(&t.req, &c.cached) catch |err| {
|
||||
t.req.error_callback(t.req.ctx, err);
|
||||
|
||||
Reference in New Issue
Block a user