Skip to content

Commit 7a9101c

Browse files
committed
cdp: let the inspector return the response
When a command is forwarded to the inspector, it handles directly the reponse to the message.
1 parent 0806b3d commit 7a9101c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/cdp/runtime.zig

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,8 @@ fn sendInspector(cmd: anytype, action: anytype) !void {
5858
}
5959
}
6060

61+
// the result to return is handled directly by the inspector.
6162
cmd.session.callInspector(cmd.json);
62-
63-
if (cmd.id != null) {
64-
return cmd.sendResult(null, .{});
65-
}
6663
}
6764

6865
pub const ExecutionContextCreated = struct {

0 commit comments

Comments
 (0)