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

Commit 69c5e00

Browse files
fix timout based on retries count on android taget
1 parent 18504ac commit 69c5e00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/target/java_android.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ END
757757
end
758758
end}
759759
sentCount[0] += 1;
760-
if (sentCount[0] >= 22) {
760+
if (sentCount[0] >= 22 || (setCount[0] * 2000) >= http.connectTimeoutMillis()) {
761761
if (!shouldReceiveResponse[0]) return;
762762
shouldReceiveResponse[0] = false;
763763
timer.cancel();

0 commit comments

Comments
 (0)