Browse Source

Use `getKey` to actually retrieve key. (#332)

`hasKey` just validates it's available
pull/333/head
Matt Gibson 5 years ago committed by GitHub
parent
commit
10643be8bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/program.ts

2
src/program.ts

@ -418,6 +418,8 @@ export class Program extends BaseProgram { @@ -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();
}
}

Loading…
Cancel
Save