feat(client): sync digital employee outbox
This commit is contained in:
@@ -39,6 +39,7 @@ import { initAutoUpdater } from "./services/autoUpdater";
|
||||
import { migrateDataDir, migrateSettingsPaths } from "./bootstrap/migrate";
|
||||
import { getDeviceId, logSystemInfo } from "./services/system/deviceId";
|
||||
import { initWebviewPolicy } from "./services/system/webviewPolicy";
|
||||
import { stopDigitalEmployeeSyncWorker } from "./services/digitalEmployee/syncService";
|
||||
|
||||
// macOS 26 Tahoe 兼容性:禁用 Fontations 字体后端
|
||||
// 参考: https://github.com/electron/electron/issues/49522
|
||||
@@ -574,6 +575,7 @@ app.on("before-quit", (e) => {
|
||||
log.info(
|
||||
"[App] Before quit - update install in progress, skipping preventDefault to allow installer",
|
||||
);
|
||||
stopDigitalEmployeeSyncWorker();
|
||||
closeDb();
|
||||
return;
|
||||
}
|
||||
@@ -586,6 +588,7 @@ app.on("before-quit", (e) => {
|
||||
void (async () => {
|
||||
const start = Date.now();
|
||||
try {
|
||||
stopDigitalEmployeeSyncWorker();
|
||||
await cleanupAllProcesses();
|
||||
} finally {
|
||||
const elapsed = Date.now() - start;
|
||||
|
||||
Reference in New Issue
Block a user