forked from Qortal/qortal
Moved repository reopen to the finally {} block, so that we're never left without a repository instance. Should fix occasional "No repository available" error seen when retrying.
This commit is contained in:
parent
c82293342f
commit
179bd8e018
@ -458,11 +458,11 @@ public class Bootstrap {
|
||||
Files.move(inputPath, outputPath);
|
||||
|
||||
this.updateStatus("Starting repository from bootstrap...");
|
||||
}
|
||||
finally {
|
||||
RepositoryFactory repositoryFactory = new HSQLDBRepositoryFactory(Controller.getRepositoryUrl());
|
||||
RepositoryManager.setRepositoryFactory(repositoryFactory);
|
||||
|
||||
}
|
||||
finally {
|
||||
blockchainLock.unlock();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user