summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEugene Ostroukhov <eostroukhov@gmail.com>2019-07-18 13:04:11 -0700
committerRich Trott <rtrott@gmail.com>2019-07-20 14:54:20 -0700
commit49144ab64d3c5810f70585c2ccb0c90539fec116 (patch)
treed57b61635c95877e8e1104f7afcd54e9dfb0dcd3 /src
parent6c288a704453ec7319928495efd0d3c482bcf754 (diff)
downloadandroid-node-v8-49144ab64d3c5810f70585c2ccb0c90539fec116.tar.gz
android-node-v8-49144ab64d3c5810f70585c2ccb0c90539fec116.tar.bz2
android-node-v8-49144ab64d3c5810f70585c2ccb0c90539fec116.zip
inspector: do not spin-wait while waiting for the initial connection
Fixes: https://github.com/nodejs/node/issues/28741 PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'src')
-rw-r--r--src/inspector_agent.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/inspector_agent.cc b/src/inspector_agent.cc
index d9cef5e566..a1cdc606fe 100644
--- a/src/inspector_agent.cc
+++ b/src/inspector_agent.cc
@@ -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;