Revert "Broadcast cluster's disconnected state before stopping KubeAuthProxy (#4273)" (#4412)

This reverts commit 8081d35f9c.
This commit is contained in:
Jari Kolehmainen authored and GitHub committed 2021-11-24 16:18:30 +03:00
1 parent 5d172b89db
commit 820b2d1b7a
7 files changed
+24 -47

No files matched your search

+7 -8
View File
@@ -72,12 +72,7 @@ export async function start() {
...process.env,
},
timeout: 100_000,
});
const cleanup = async () => {
await app.close();
await remove(CICD).catch(noop);
};
} as Parameters<typeof electron["launch"]>[0]);
try {
const window = await getMainWindow(app);
@@ -85,10 +80,14 @@ export async function start() {
return {
app,
window,
cleanup,
cleanup: async () => {
await app.close();
await remove(CICD).catch(noop);
},
};
} catch (error) {
await cleanup();
await app.close();
await remove(CICD).catch(noop);
throw error;
}
}