Skip to content

Commit cabe2c7

Browse files
committed
🎨 #18085
1 parent 669f02e commit cabe2c7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

app/src/window/closeWin.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ export const closeWindow = async (app: App) => {
77
const plugin = app.plugins[i];
88
try {
99
await plugin.onunload();
10-
await plugin.kernel.destroy();
10+
} catch (e) {
11+
console.error(e);
12+
}
13+
try {
14+
await plugin.kernel?.destroy();
1115
} catch (e) {
1216
console.error(e);
1317
}

0 commit comments

Comments
 (0)