Skip to content

Commit 2a08449

Browse files
committed
Fixed infinite loop possible on RetryExecutor
1 parent 7eb9a33 commit 2a08449

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

http/src/main/java/com/formkiq/module/http/RetryExecutor.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ public static <R> R executeWithRetry(final Function<Void, R> operation, final in
7171
}
7272

7373
waitTime *= 2;
74+
} else {
75+
return null;
7476
}
7577
}
7678
}

0 commit comments

Comments
 (0)