🐛 Fixing the issue where frpc still runs after exiting with command + q.
This commit is contained in:
parent
f4f18afb7a
commit
a34a1886de
@ -178,7 +178,13 @@ app.whenReady().then(() => {
|
|||||||
logInfo(
|
logInfo(
|
||||||
LogModule.APP,
|
LogModule.APP,
|
||||||
`Config retrieved: ${JSON.stringify(
|
`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", () => {
|
app.on("before-quit", () => {
|
||||||
logInfo(LogModule.APP, `Application is about to quit.`);
|
logInfo(LogModule.APP, `Application is about to quit.`);
|
||||||
isQuiting = true;
|
stopFrpcProcess(() => {
|
||||||
|
isQuiting = true;
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
ipcMain.handle("open-win", (_, arg) => {
|
ipcMain.handle("open-win", (_, arg) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user