Skip to content

Commit

Permalink
fix: uv loop polling on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Oct 12, 2020
1 parent 83bb065 commit d9d5a25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions shell/renderer/electron_renderer_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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);

Expand Down

0 comments on commit d9d5a25

Please sign in to comment.