Skip to content

Commit

Permalink
bug fix read Time-out
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali Shatergholi committed Sep 3, 2019
1 parent 79bb121 commit 377e3d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/src/main/java/com/github/library/BaseClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ static synchronized OkHttpClient getClient(int timeOut, int readTime, boolean en

OkHttpClient.Builder instanceBuilder = new OkHttpClient()
.newBuilder()
.readTimeout(readTime, TimeUnit.MILLISECONDS)
.connectTimeout(timeOut, TimeUnit.MILLISECONDS);

if (enableDebug)
Expand Down

0 comments on commit 377e3d9

Please sign in to comment.