Skip to content

fix (electron-chrome-extensions): always disconnect native port when native messaging host is destroyed #156

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

aavshr
Copy link

@aavshr aavshr commented Jun 26, 2025

Changes

Currently the connected guard is still false when destroy is called even if the extension native messaging config/host could not be found. The native port is never closed on these errors and hence also the onDisconnect event is never emitted for potential listeners. This PR gets rid of the connected guard check and also fixes a typo on the disconnect ipc channel name.


✅ By sending this pull request, I agree to the Contributor License Agreement of this project.

@aavshr aavshr changed the title fix (electron-chrome-extensions): always emit native port onDisconnect event when native messaging host is destroyed fix (electron-chrome-extensions): always disconnect native port when native messaging host is destroyed Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant