Skip to content

Commit

Permalink
Merge pull request #113 from Syhids/patch-1
Browse files Browse the repository at this point in the history
Removes wrong comment
  • Loading branch information
marcomorain authored Jan 25, 2017
2 parents ea0c6d0 + ab10f42 commit f239124
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit f239124

Please sign in to comment.