mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-30 07:31:47 +00:00
cdp: remove send sync
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
This commit is contained in:
@@ -256,8 +256,7 @@ fn disposeBrowserContext(
|
||||
|
||||
// output
|
||||
const res = try result(alloc, msg.id, null, .{}, null);
|
||||
defer alloc.free(res);
|
||||
try server.sendSync(ctx, res);
|
||||
try server.sendAsync(ctx, res);
|
||||
|
||||
return error.DisposeBrowserContext;
|
||||
}
|
||||
@@ -345,8 +344,7 @@ fn closeTarget(
|
||||
success: bool = true,
|
||||
};
|
||||
const res = try result(alloc, msg.id, Resp, Resp{}, null);
|
||||
defer alloc.free(res);
|
||||
try server.sendSync(ctx, res);
|
||||
try server.sendAsync(ctx, res);
|
||||
|
||||
// Inspector.detached event
|
||||
const InspectorDetached = struct {
|
||||
|
||||
Reference in New Issue
Block a user