If trying to delete a file fails then schedule the file to be deleted on exit.

This commit is contained in:
John Blum
2020-08-28 10:41:13 -07:00
parent d9b3ac9ce3
commit cb28c5f4df

View File

@@ -352,7 +352,9 @@ public class GemFireResourceCollectorApplicationListener
collectGemFireResources(file);
}
else {
tryDelete(file);
if (!tryDelete(file)) {
file.deleteOnExit();
}
}
}