Merge "Let LockFile.unlock use FileUtils.delete()"

This commit is contained in:
Shawn Pearce 2011-04-01 20:46:33 -04:00 committed by Code Review
commit 1e03d52f33
1 changed files with 5 additions and 1 deletions

View File

@ -488,7 +488,11 @@ public void unlock() {
if (haveLck) {
haveLck = false;
lck.delete();
try {
FileUtils.delete(lck, FileUtils.RETRY);
} catch (IOException e) {
// couldn't delete the file even after retry.
}
}
}