From 005ab48f188ad1c2e87e39c70481b29ab17a54fc Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 14 Apr 2023 09:07:16 +0100 Subject: [PATCH] Fix error about webContents on log out (#627) --- src/ipc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipc.ts b/src/ipc.ts index 78fa210..8479e75 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") {