Skip to content

Commit

Permalink
fix(WaitForUnlockedFile): Break if we can acquire exclusive lock on file
Browse files Browse the repository at this point in the history
  • Loading branch information
ebariche committed Sep 2, 2022
1 parent 5fb1bca commit d026090
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ private void WaitForUnlockedFile(string filePath)
try
{
File.OpenWrite(filePath).Dispose();

break;
}
catch
{
Expand Down

0 comments on commit d026090

Please sign in to comment.