diff options
author | Eugene Ostroukhov <eostroukhov@gmail.com> | 2019-07-18 23:04:11 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-07-21 00:54:20 +0300 |
commit | 49144ab64d3c5810f70585c2ccb0c90539fec116 (patch) | |
tree | d57b61635c95877e8e1104f7afcd54e9dfb0dcd3 /src/inspector_agent.cc | |
parent | 6c288a704453ec7319928495efd0d3c482bcf754 (diff) |
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/inspector_agent.cc')
-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 d9cef5e5666..a1cdc606fe8 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; |