diff --git a/src/program.ts b/src/program.ts index f3b0b63c1bd..77c40a10fb9 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(); } }