Skip to content

Commit f239124

Browse files
authored
Merge pull request #113 from Syhids/patch-1
Removes wrong comment
2 parents ea0c6d0 + ab10f42 commit f239124

File tree

1 file changed

+3
-1
lines changed
  • sentry-android/src/main/java/com/joshdholtz/sentry

1 file changed

+3
-1
lines changed

sentry-android/src/main/java/com/joshdholtz/sentry/Sentry.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@
8282
import javax.net.ssl.TrustManager;
8383
import javax.net.ssl.X509TrustManager;
8484

85+
import static java.util.concurrent.TimeUnit.SECONDS;
86+
8587
public class Sentry {
8688

8789
private static final String TAG = "Sentry";
@@ -419,7 +421,7 @@ public void run() {
419421

420422
HttpPost httpPost = new HttpPost(url);
421423

422-
int TIMEOUT_MILLISEC = 10000; // = 20 seconds
424+
int TIMEOUT_MILLISEC = (int)SECONDS.toMillis(10);
423425
HttpParams httpParams = httpPost.getParams();
424426
HttpConnectionParams.setConnectionTimeout(httpParams, TIMEOUT_MILLISEC);
425427
HttpConnectionParams.setSoTimeout(httpParams, TIMEOUT_MILLISEC);

0 commit comments

Comments
 (0)