Skip to content

Commit 7b0b06d

Browse files
eugeneotargos
authored andcommitted
inspector: do not spin-wait while waiting for the initial connection
Fixes: #28741 PR-URL: #28756 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Aleksei Koziatinskii <ak239spb@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 2eeb44f commit 7b0b06d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/inspector_agent.cc

+1-2
Original file line numberDiff line numberDiff line change
@@ -699,8 +699,7 @@ class NodeInspectorClient : public V8InspectorClient {
699699

700700
MultiIsolatePlatform* platform = env_->isolate_data()->platform();
701701
while (shouldRunMessageLoop()) {
702-
if (interface_ && hasConnectedSessions())
703-
interface_->WaitForFrontendEvent();
702+
if (interface_) interface_->WaitForFrontendEvent();
704703
while (platform->FlushForegroundTasks(env_->isolate())) {}
705704
}
706705
running_nested_loop_ = false;

0 commit comments

Comments
 (0)