diff --git a/src/program.ts b/src/program.ts index f3b0b63..77c40a1 100644 --- a/src/program.ts +++ b/src/program.ts @@ -418,6 +418,8 @@ export class Program extends BaseProgram { } else { this.processResponse(Response.error('Vault is locked.'), true); } + } else if (!this.main.cryptoService.hasKeyInMemory()) { + await this.main.cryptoService.getKey(); } }