Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:goal_net: fix https://github.com/siyuan-note/siyuan/issues/9240

Vanessa833e46654461
diff --git a/app/src/window/closeWin.ts b/app/src/window/closeWin.ts
index 19b4ee00ef..3a06e5cfd3 100644
--- a/app/src/window/closeWin.ts
+++ b/app/src/window/closeWin.ts
@@ -3,7 +3,11 @@ import {getCurrentWindow} from "@electron/remote";
export const closeWindow = async (app: App) => {
for (let i = 0; i < app.plugins.length; i++) {
- await app.plugins[i].onunload();
+ try {
+ await app.plugins[i].onunload();
+ } catch (e) {
+ console.error(e);
+ }
}
getCurrentWindow().destroy();
};