mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-02-04 06:23:45 +00:00
cdp: accept multiple attachToTarget calls
This commit is contained in:
@@ -230,10 +230,6 @@ fn attachToTarget(cmd: anytype) !void {
|
|||||||
return error.UnknownTargetId;
|
return error.UnknownTargetId;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bc.session_id != null) {
|
|
||||||
return error.SessionAlreadyLoaded;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (bc.session_id == null) {
|
if (bc.session_id == null) {
|
||||||
try doAttachtoTarget(cmd, target_id);
|
try doAttachtoTarget(cmd, target_id);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user