Skip to content

Commit 1584ffe

Browse files
committed
fix: changed form blacklist approach
1 parent 1db1aa3 commit 1584ffe

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/ui/main/rootWindow.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,13 @@ export const showRootWindow = async (): Promise<void> => {
527527
browserWindow.webContents.on(
528528
'render-process-gone',
529529
async (_event, details) => {
530-
if (details.reason === 'clean-exit') {
530+
const crashReasons = [
531+
'crashed',
532+
'oom',
533+
'abnormal-exit',
534+
'launch-failed',
535+
];
536+
if (!crashReasons.includes(details.reason)) {
531537
return;
532538
}
533539

0 commit comments

Comments
 (0)