delete sqlfile on exit

This commit is contained in:
HorizonCode 2022-06-30 16:32:24 +02:00
parent 8221fb8ff7
commit 232f7340f0

View File

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