From e8d9ad5037506c5701d3c831f437366fb1ba2e87 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 13 Apr 2023 17:15:02 +0100 Subject: [PATCH] Fix error about webContents on log out --- src/ipc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipc.ts b/src/ipc.ts index 78fa210d1..8479e7590 100644 --- a/src/ipc.ts +++ b/src/ipc.ts @@ -192,7 +192,7 @@ ipcMain.on("ipcCall", async function (_ev: IpcMainEvent, payload) { global.mainWindow.webContents.session.flushStorageData(); await global.mainWindow.webContents.session.clearStorageData(); relaunchApp(); - break; + return; // the app is about to stop, we don't need to reply to the IPC case "breadcrumbs": { if (process.platform === "darwin") {