Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove redundant code in node integration #33500

Merged
merged 1 commit into from
Mar 30, 2022

Conversation

zcbenz
Copy link
Member

@zcbenz zcbenz commented Mar 29, 2022

Description of Change

In the node integration code, on Linux and macOS we have code checking whether the backend fd is changed to prevent duplicate initializations. But since the backend fd of default uv loop is never changed, the code is essentially just preventing double initialization, which is identical to the Windows code.

This PR removes redundant check of backend fd and changes the code to use same routine on all platforms.

The code was introduced in #25869 and #27582, and I can verify the original issues are not regressed.

Release Notes

Notes: none

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Mar 29, 2022
Copy link
Member

@deepak1556 deepak1556 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@deepak1556
Copy link
Member

Linux CI is green https://app.circleci.com/pipelines/github/electron/electron/51237/workflows/0095b693-9d63-4888-a57e-2097056d0fab , status wasn't signalled back to github.

@deepak1556 deepak1556 merged commit c119b1e into main Mar 30, 2022
@deepak1556 deepak1556 deleted the simplify-node-integration branch March 30, 2022 03:09
@release-clerk
Copy link

release-clerk bot commented Mar 30, 2022

No Release Notes

bavulapati pushed a commit to bavulapati/electron that referenced this pull request Apr 29, 2022
khalwa pushed a commit to solarwindscloud/electron that referenced this pull request Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-pr 🌱 PR opened in the last 24 hours no-backport semver/none
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants