mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-04-20 05:49:13 +00:00
Merge pull request #1295 from alexbakker/intro-init-crash
Don't initialize VaultManager after the intro unless saving succeeds
This commit is contained in:
commit
22c9ab7c03
1 changed files with 3 additions and 2 deletions
|
@ -55,8 +55,9 @@ public class VaultManager {
|
|||
throw new IllegalStateException("Vault manager is already initialized");
|
||||
}
|
||||
|
||||
_repo = new VaultRepository(_context, new Vault(), creds);
|
||||
save();
|
||||
VaultRepository repo = new VaultRepository(_context, new Vault(), creds);
|
||||
repo.save();
|
||||
_repo = repo;
|
||||
|
||||
if (getVault().isEncryptionEnabled()) {
|
||||
startNotificationService();
|
||||
|
|
Loading…
Add table
Reference in a new issue