Skip to content

Commit 4d9c33d

Browse files
Hugo-Dahl-TylerAArnott
authored andcommitted
Break out of for loop on success
Addresses item 1 of issue #726
1 parent 06fb918 commit 4d9c33d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Shared/Utilities.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ internal static void FileOperationWithRetry(Action operation)
1919
try
2020
{
2121
operation();
22+
break;
2223
}
2324
catch (IOException ex) when (ex.HResult == ProcessCannotAccessFileHR && retriesLeft > 0)
2425
{

0 commit comments

Comments
 (0)