Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit f2ad780

Browse files
committed
Change Android HTTP timeout exception handling
1 parent 58205e5 commit f2ad780

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,9 @@ public Response intercept(Chain chain) throws IOException {
310310
}
311311
return originalResponse.newBuilder().body(extended).build();
312312
}
313+
catch (SocketTimeoutException e){
314+
timeout = true;
315+
}
313316
catch (SocketException ex) {
314317
timeout = true;
315318
}

0 commit comments

Comments
 (0)