From a6d3891a9530f91f79bf44f4740451fac949bdad Mon Sep 17 00:00:00 2001 From: CalDescent Date: Sun, 3 Oct 2021 09:48:14 +0100 Subject: [PATCH] Fixed bugs when importing bootstrap. --- src/main/java/org/qortal/repository/Bootstrap.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/qortal/repository/Bootstrap.java b/src/main/java/org/qortal/repository/Bootstrap.java index 2730fe4c..b647a9f8 100644 --- a/src/main/java/org/qortal/repository/Bootstrap.java +++ b/src/main/java/org/qortal/repository/Bootstrap.java @@ -289,6 +289,7 @@ public class Bootstrap { LOGGER.info("Starting import of bootstrap..."); this.doImport(); + break; } catch (DataException e) { LOGGER.info("Bootstrap import failed: {}", e.getMessage()); @@ -314,7 +315,7 @@ public class Bootstrap { finally { if (path != null) { try { - FileUtils.deleteDirectory(path.toFile()); + Files.delete(path); } catch (IOException e) { // Temp folder will be cleaned up by system anyway, so ignore this failure