diff options
author | Eugene Ostroukhov <eostroukhov@gmail.com> | 2019-07-18 13:04:11 -0700 |
---|---|---|
committer | Michaƫl Zasso <targos@protonmail.com> | 2019-07-22 21:20:42 +0200 |
commit | 7b0b06d735c90c41900efe5948a0aee6c0a745df (patch) | |
tree | 32e09a8e48ad5557a98c5e69e0816e8ea4d67c16 | |
parent | 2eeb44f3facb58dacbcb2f270d4f169a2c81ee08 (diff) | |
download | android-node-v8-7b0b06d735c90c41900efe5948a0aee6c0a745df.tar.gz android-node-v8-7b0b06d735c90c41900efe5948a0aee6c0a745df.tar.bz2 android-node-v8-7b0b06d735c90c41900efe5948a0aee6c0a745df.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>
-rw-r--r-- | src/inspector_agent.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/inspector_agent.cc b/src/inspector_agent.cc index 4a4a8eb4be..e392be8595 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; |