Skip to content
This repository has been archived by the owner on Nov 24, 2020. It is now read-only.

Commit

Permalink
fix timout based on retries count on android taget
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpsantiago committed Mar 18, 2019
1 parent 18504ac commit 69c5e00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/target/java_android.cr
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ END
end
end}
sentCount[0] += 1;
if (sentCount[0] >= 22) {
if (sentCount[0] >= 22 || (setCount[0] * 2000) >= http.connectTimeoutMillis()) {
if (!shouldReceiveResponse[0]) return;
shouldReceiveResponse[0] = false;
timer.cancel();
Expand Down

0 comments on commit 69c5e00

Please sign in to comment.