diff --git a/src/main/java/net/horizoncode/sysbackup/tasks/impl/DatabaseTask.java b/src/main/java/net/horizoncode/sysbackup/tasks/impl/DatabaseTask.java index 3fe9542..f5a9ac4 100644 --- a/src/main/java/net/horizoncode/sysbackup/tasks/impl/DatabaseTask.java +++ b/src/main/java/net/horizoncode/sysbackup/tasks/impl/DatabaseTask.java @@ -106,11 +106,11 @@ public class DatabaseTask extends Task { pb.stepTo(progressMonitor.getTotalWork()); } catch (Exception exception) { exception.printStackTrace(); - FileUtils.deleteQuietly(outputSQLFile); + outputSQLFile.deleteOnExit(); onDone(); } progressMonitor.endProgressMonitor(); - FileUtils.deleteQuietly(outputSQLFile); + outputSQLFile.deleteOnExit(); onDone(); } catch (Exception ex) { ex.printStackTrace();