From b962af303adcf0c3f29aba218017deec56244e2b Mon Sep 17 00:00:00 2001 From: Thomas Rittson <31796059+eliykat@users.noreply.github.com> Date: Thu, 13 Jan 2022 17:35:48 +1000 Subject: [PATCH] Fix always logging out instead of lock (#444) --- src/program.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/program.ts b/src/program.ts index d6c543e..478525c 100644 --- a/src/program.ts +++ b/src/program.ts @@ -194,7 +194,7 @@ export class Program extends BaseProgram { .action(async (cmd) => { await this.exitIfNotAuthed(); - if (this.main.keyConnectorService.getUsesKeyConnector()) { + if (await this.main.keyConnectorService.getUsesKeyConnector()) { const logoutCommand = new LogoutCommand( this.main.authService, this.main.i18nService,