1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 21:33:27 +00:00

fix: only start ssh agent if it's enabled (#13464)

closes #13150

Co-authored-by: Bernd Schoolmann <mail@quexten.com>
This commit is contained in:
Zihad
2025-06-09 20:05:34 +06:00
committed by GitHub
parent a421acc47a
commit b43e09ea6f

View File

@@ -63,9 +63,16 @@ export class SshAgentService implements OnDestroy {
) {}
async init() {
if (!(await ipc.platform.sshAgent.isLoaded())) {
await ipc.platform.sshAgent.init();
}
this.desktopSettingsService.sshAgentEnabled$
.pipe(
concatMap(async (enabled) => {
if (!(await ipc.platform.sshAgent.isLoaded()) && enabled) {
await ipc.platform.sshAgent.init();
}
}),
takeUntil(this.destroy$),
)
.subscribe();
await this.initListeners();
}