Skip to content

Commit

Permalink
inspector: do not spin-wait while waiting for the initial connection
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
eugeneo authored and targos committed Jul 22, 2019
1 parent 2eeb44f commit 7b0b06d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/inspector_agent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -699,8 +699,7 @@ class NodeInspectorClient : public V8InspectorClient {

MultiIsolatePlatform* platform = env_->isolate_data()->platform();
while (shouldRunMessageLoop()) {
if (interface_ && hasConnectedSessions())
interface_->WaitForFrontendEvent();
if (interface_) interface_->WaitForFrontendEvent();
while (platform->FlushForegroundTasks(env_->isolate())) {}
}
running_nested_loop_ = false;
Expand Down

0 comments on commit 7b0b06d

Please sign in to comment.