Skip to content

Commit

Permalink
spring-projectsGH-388: add non blocking sleeper
Browse files Browse the repository at this point in the history
- fix (spring-projects#388)
- add non blocking sleeper
  • Loading branch information
Alireza Hakimrabet committed May 24, 2024
1 parent eb6caae commit 6433bf8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void sleep(long backOffPeriod) throws InterruptedException {
try {
TimeUnit.MILLISECONDS.sleep(backOffPeriod);
}
catch (Exception e) {
catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new BackOffInterruptedException("Thread interrupted while sleeping", e);
}
Expand Down

0 comments on commit 6433bf8

Please sign in to comment.