From ab10f423c1712fd11f4199c092ad129944bbde60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Jim=C3=A9nez=20Torres?= Date: Wed, 25 Jan 2017 17:22:06 +0100 Subject: [PATCH] Removes wrong comment --- .../src/main/java/com/joshdholtz/sentry/Sentry.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sentry-android/src/main/java/com/joshdholtz/sentry/Sentry.java b/sentry-android/src/main/java/com/joshdholtz/sentry/Sentry.java index ab94984..8d753f9 100755 --- a/sentry-android/src/main/java/com/joshdholtz/sentry/Sentry.java +++ b/sentry-android/src/main/java/com/joshdholtz/sentry/Sentry.java @@ -82,6 +82,8 @@ import javax.net.ssl.TrustManager; import javax.net.ssl.X509TrustManager; +import static java.util.concurrent.TimeUnit.SECONDS; + public class Sentry { private static final String TAG = "Sentry"; @@ -419,7 +421,7 @@ public void run() { HttpPost httpPost = new HttpPost(url); - int TIMEOUT_MILLISEC = 10000; // = 20 seconds + int TIMEOUT_MILLISEC = (int)SECONDS.toMillis(10); HttpParams httpParams = httpPost.getParams(); HttpConnectionParams.setConnectionTimeout(httpParams, TIMEOUT_MILLISEC); HttpConnectionParams.setSoTimeout(httpParams, TIMEOUT_MILLISEC);