Browse Source

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

v2.0-beta
CalDescent 3 years ago
parent
commit
3fb7df18a0
  1. 3
      src/main/java/org/qortal/repository/Bootstrap.java

3
src/main/java/org/qortal/repository/Bootstrap.java

@ -207,6 +207,9 @@ public class Bootstrap {
throw new DataException("Repository instance required in order to create a boostrap"); 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..."); LOGGER.info("Acquiring blockchain lock...");
ReentrantLock blockchainLock = Controller.getInstance().getBlockchainLock(); ReentrantLock blockchainLock = Controller.getInstance().getBlockchainLock();
blockchainLock.lockInterruptibly(); blockchainLock.lockInterruptibly();

Loading…
Cancel
Save