If trying to delete a file fails then schedule the file to be deleted on exit.
This commit is contained in:
@@ -352,7 +352,9 @@ public class GemFireResourceCollectorApplicationListener
|
||||
collectGemFireResources(file);
|
||||
}
|
||||
else {
|
||||
tryDelete(file);
|
||||
if (!tryDelete(file)) {
|
||||
file.deleteOnExit();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user