Skip to content

Commit ecda0c5

Browse files
authored
Retry on response code 429 (#467)
1 parent ec0cf95 commit ecda0c5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

AndroidSDKCore/src/main/java/com/leanplum/internal/RequestSender.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,10 @@ public void sendRequests() {
154154
}
155155
} else {
156156
Exception errorException = new Exception("HTTP error " + statusCode);
157-
if (statusCode != -1 && statusCode != 408 && !(statusCode >= 500 && statusCode <= 599)) {
157+
if (statusCode != -1
158+
&& statusCode != 408
159+
&& statusCode != 429
160+
&& !(statusCode >= 500 && statusCode <= 599)) {
158161
batchFactory.deleteFinishedBatch(batch);
159162
}
160163
invokeCallbacksWithError(errorException);

0 commit comments

Comments
 (0)