Skip to content

Commit 55818fd

Browse files
committed
Wrap HostPort with ExclusiveAccess
nodejs/node#31717
1 parent 4a66744 commit 55818fd

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

shell/browser/node_debugger.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ void NodeDebugger::Start() {
3030
// DebugOptions will already have been set by ProcessGlobalArgs,
3131
// so just pull the ones from there to pass to the InspectorAgent
3232
const auto debug_options = env_->options()->debug_options();
33-
if (inspector->Start(
34-
"" /* path */, debug_options,
35-
std::make_shared<node::HostPort>(debug_options.host_port),
36-
true /* is_main */))
33+
if (inspector->Start("" /* path */, debug_options,
34+
std::make_shared<node::ExclusiveAccess<node::HostPort>>(
35+
debug_options.host_port),
36+
true /* is_main */))
3737
DCHECK(env_->inspector_agent()->IsListening());
3838
}
3939

0 commit comments

Comments
 (0)