mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
fix: uv loop polling when render process reuse enabled (#25869)
This commit is contained in:
@@ -108,12 +108,12 @@ void ElectronRendererClient::DidCreateScriptContext(
|
||||
|
||||
injected_frames_.insert(render_frame);
|
||||
|
||||
// If this is the first environment we are creating, prepare the node
|
||||
// bindings.
|
||||
if (!node_integration_initialized_) {
|
||||
node_integration_initialized_ = true;
|
||||
node_bindings_->Initialize();
|
||||
node_bindings_->PrepareMessageLoop();
|
||||
} else if (reuse_renderer_processes_enabled) {
|
||||
node_bindings_->PrepareMessageLoop();
|
||||
}
|
||||
|
||||
// Setup node tracing controller.
|
||||
@@ -129,7 +129,7 @@ void ElectronRendererClient::DidCreateScriptContext(
|
||||
|
||||
// If we have disabled the site instance overrides we should prevent loading
|
||||
// any non-context aware native module
|
||||
if (command_line->HasSwitch(switches::kDisableElectronSiteInstanceOverrides))
|
||||
if (reuse_renderer_processes_enabled)
|
||||
env->set_force_context_aware(true);
|
||||
env->set_warn_context_aware(true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user