Skip to content

Commit

Permalink
Handle UnauthorizedAccessExceptions when attempting to delete a tempo…
Browse files Browse the repository at this point in the history
…rary file by ignoring them and attempting the delete again later.
  • Loading branch information
ribbons committed Jul 19, 2013
1 parent 51d5501 commit 50b4081
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Classes/TempFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,11 @@ private static void DeleteFiles()
// File is still in use - try again later
continue;
}
catch (UnauthorizedAccessException)
{
// Do not have the correct permissions to delete - try again later
continue;
}

lock (Database.DbUpdateLock)
{
Expand Down

0 comments on commit 50b4081

Please sign in to comment.