From fff18b063b6a162cc04dacc0b47d5da1ef5701a9 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 30 Jun 2020 11:50:28 +0200 Subject: [PATCH] Small improvement --- app/src/main/java/eu/faircode/email/IPInfo.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/eu/faircode/email/IPInfo.java b/app/src/main/java/eu/faircode/email/IPInfo.java index e446335769..46dba24f47 100644 --- a/app/src/main/java/eu/faircode/email/IPInfo.java +++ b/app/src/main/java/eu/faircode/email/IPInfo.java @@ -72,6 +72,7 @@ public class IPInfo { HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); connection.setRequestMethod("GET"); connection.setReadTimeout(FETCH_TIMEOUT); + connection.setConnectTimeout(FETCH_TIMEOUT); connection.connect(); Organization organization = new Organization();