Skip to content

Commit aaff4e0

Browse files
authored
feat: improve auth service resilience (#1367)
## Problem Auth service could be more robust, this attempts to tackle some of the transient auth failures. <!-- Who is this for and what problem does it solve? --> <!-- Closes #ISSUE_ID --> ## Changes - Better hooks for connectivity/sleep/wake - Better retry logic
1 parent d2e2f22 commit aaff4e0

File tree

3 files changed

+522
-236
lines changed

3 files changed

+522
-236
lines changed

apps/code/src/main/index.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import "reflect-metadata";
22
import os from "node:os";
3-
import { app, powerMonitor } from "electron";
3+
import { app } from "electron";
44
import log from "electron-log/main";
55
import "./utils/logger";
66
import "./services/index.js";
@@ -93,14 +93,6 @@ app.whenReady().then(async () => {
9393
createWindow();
9494
await initializeServices();
9595
initializeDeepLinks();
96-
await initializeServices();
97-
powerMonitor.on("suspend", () => {
98-
log.info("System entering sleep");
99-
});
100-
101-
powerMonitor.on("resume", () => {
102-
log.info("System waking from sleep");
103-
});
10496
});
10597

10698
app.on("window-all-closed", () => {

0 commit comments

Comments
 (0)