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

Fix crash when calling .destroy() on a BrowserWindow #197

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dguenther
Copy link

Fixes a crash that happens when calling .destroy() on a BrowserWindow with an electron-trpc handler attached. detachHandler can potentially be called with a destroyed window, which then causes a crash on accessing win.webContents.id. See #156 for a reproduction case.

Definitely open to alternate solutions here! Feel free to close this PR or push to the branch directly if you'd like any changes.

Closes #156

@1yasa
Copy link

1yasa commented Sep 11, 2024

+1

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.

App crashes with "Object has been destroyed" error
2 participants