jsonnull/electron-trpc

App crashes with "Object has been destroyed" error

thecodrr opened this issue · 4 comments

I believe it is coming from here due to win being destroyed:

if (key.startsWith(`${win.webContents.id}-`)) {

Here's the full error:

image

Hey @thecodrr, can you provide more information about when the error occurs?

I'm confident I have a fix, but I want to be sure I understand the root cause before I patch it.

@jsonnull this occurs on closing the window.