We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85136cd commit c5a5d36Copy full SHA for c5a5d36
src/cdp/target.zig
@@ -134,10 +134,6 @@ fn createTarget(cmd: anytype) !void {
134
);
135
try page.start(aux_data);
136
137
- try cmd.sendResult(.{
138
- .targetId = target_id,
139
- }, .{});
140
-
141
// send targetCreated event
142
// TODO: should this only be sent when Target.setDiscoverTargets
143
// has been enabled?
@@ -154,6 +150,10 @@ fn createTarget(cmd: anytype) !void {
154
150
// only if setAutoAttach is true?
155
151
try doAttachtoTarget(cmd, target_id);
156
152
bc.target_id = target_id;
153
+
+ try cmd.sendResult(.{
+ .targetId = target_id,
+ }, .{});
157
}
158
159
fn attachToTarget(cmd: anytype) !void {
0 commit comments