🐛 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(
|
||||
LogModule.APP,
|
||||
`Config retrieved: ${JSON.stringify(
|
||||
maskSensitiveData(config, ["serverAddr", "serverPort", "authToken", "user", "metaToken"])
|
||||
maskSensitiveData(config, [
|
||||
"serverAddr",
|
||||
"serverPort",
|
||||
"authToken",
|
||||
"user",
|
||||
"metaToken"
|
||||
])
|
||||
)}`
|
||||
);
|
||||
|
||||
@ -270,8 +276,10 @@ app.on("activate", () => {
|
||||
|
||||
app.on("before-quit", () => {
|
||||
logInfo(LogModule.APP, `Application is about to quit.`);
|
||||
stopFrpcProcess(() => {
|
||||
isQuiting = true;
|
||||
});
|
||||
});
|
||||
|
||||
ipcMain.handle("open-win", (_, arg) => {
|
||||
logInfo(LogModule.APP, `Opening new window with argument: ${arg}`);
|
||||
|
Loading…
Reference in New Issue
Block a user