Skip to content

Commit

Permalink
fix: Fix retry logic when Retry-After header is present (#1033)
Browse files Browse the repository at this point in the history
  • Loading branch information
arjankowski authored Mar 17, 2022
1 parent 042d595 commit 05224c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/box/sdk/BoxAPIRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ public BoxAPIResponse send(ProgressListener listener) {
if (retryAfterHeader == null) {
this.backoffCounter.waitBackoff();
} else {
int retryAfterDelay = Integer.parseInt(retryAfterHeader.get(0));
int retryAfterDelay = Integer.parseInt(retryAfterHeader.get(0)) * 1000;
this.backoffCounter.waitBackoff(retryAfterDelay);
}
} catch (InterruptedException interruptedException) {
Expand Down

0 comments on commit 05224c4

Please sign in to comment.