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: nodejs#28741

PR-URL: nodejs#28756
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Aleksei Koziatinskii <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Anto Aravinth <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
  • Loading branch information
eugeneo authored and Trott committed Jul 20, 2019
1 parent 6c288a7 commit 49144ab
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 49144ab

Please sign in to comment.