diff --git a/electron/main/index.ts b/electron/main/index.ts index 7a70f18..b9c7a2b 100644 --- a/electron/main/index.ts +++ b/electron/main/index.ts @@ -178,7 +178,13 @@ app.whenReady().then(() => { logInfo( LogModule.APP, `Config retrieved: ${JSON.stringify( - maskSensitiveData(config, ["serverAddr", "serverPort", "authToken", "user", "metaToken"]) + maskSensitiveData(config, [ + "serverAddr", + "serverPort", + "authToken", + "user", + "metaToken" + ]) )}` ); @@ -270,7 +276,9 @@ app.on("activate", () => { app.on("before-quit", () => { logInfo(LogModule.APP, `Application is about to quit.`); - isQuiting = true; + stopFrpcProcess(() => { + isQuiting = true; + }); }); ipcMain.handle("open-win", (_, arg) => {