Skip to content

Commit 0539475

Browse files
committed
fix(Networking): keep requests when status code from an HTTP response message equals -1.
1 parent a808f73 commit 0539475

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AndroidSDK/src/com/leanplum/internal/Request.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ private void sendRequests() {
524524
}
525525
} else {
526526
errorException = new Exception("HTTP error " + statusCode);
527-
if (statusCode != 408 && !(statusCode >= 500 && statusCode <= 599)) {
527+
if (statusCode != -1 && statusCode != 408 && !(statusCode >= 500 && statusCode <= 599)) {
528528
deleteSentRequests(unsentRequests.size());
529529
parseResponseBody(responseBody, requestsToSend, errorException, unsentRequests.size());
530530
}

0 commit comments

Comments
 (0)