We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ea0c6d0 + ab10f42 commit f239124Copy full SHA for f239124
sentry-android/src/main/java/com/joshdholtz/sentry/Sentry.java
@@ -82,6 +82,8 @@
82
import javax.net.ssl.TrustManager;
83
import javax.net.ssl.X509TrustManager;
84
85
+import static java.util.concurrent.TimeUnit.SECONDS;
86
+
87
public class Sentry {
88
89
private static final String TAG = "Sentry";
@@ -419,7 +421,7 @@ public void run() {
419
421
420
422
HttpPost httpPost = new HttpPost(url);
423
- int TIMEOUT_MILLISEC = 10000; // = 20 seconds
424
+ int TIMEOUT_MILLISEC = (int)SECONDS.toMillis(10);
425
HttpParams httpParams = httpPost.getParams();
426
HttpConnectionParams.setConnectionTimeout(httpParams, TIMEOUT_MILLISEC);
427
HttpConnectionParams.setSoTimeout(httpParams, TIMEOUT_MILLISEC);
0 commit comments