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:
CalDescent 2021-10-06 19:44:04 +01:00
parent c82293342f
commit 179bd8e018

View File

@ -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();
}
}