Minor trace patch

This commit is contained in:
Ander Ruiz
2017-06-13 09:10:13 +02:00
parent c3c1869829
commit 091108a369

View File

@@ -203,8 +203,8 @@ public class DownloadTask implements Callable<Future<ProcessTask>> {
* Attempts to delete the files that were downloaded.
*/
public void cleanup() {
if (first != null && first.exists() && first.delete()) {
LOGGER.debug("Failed to delete first temporary file {}", second.toString());
if (first != null && first.exists() && !first.delete()) {
LOGGER.debug("Failed to delete first temporary file {}", first.toString());
first.deleteOnExit();
}
if (second != null && second.exists() && !second.delete()) {