Delete temp directories at the beginning of the bootstrap process too, as Windows doesn't like deleting it at the end of the process.

This commit is contained in:
CalDescent 2021-10-09 13:02:47 +01:00
parent 00401080e0
commit 3fb7df18a0

View File

@ -207,6 +207,9 @@ public class Bootstrap {
throw new DataException("Repository instance required in order to create a boostrap");
}
LOGGER.info("Deleting temp directory if it exists...");
this.deleteAllTempDirectories();
LOGGER.info("Acquiring blockchain lock...");
ReentrantLock blockchainLock = Controller.getInstance().getBlockchainLock();
blockchainLock.lockInterruptibly();