Ver código fonte

Change Android HTTP timeout exception handling

Ben Hsieh 7 anos atrás
pai
commit
f2ad780d8f

+ 3
- 0
src/android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java Ver arquivo

@@ -310,6 +310,9 @@ public class RNFetchBlobReq extends BroadcastReceiver implements Runnable {
310 310
                         }
311 311
                         return originalResponse.newBuilder().body(extended).build();
312 312
                     }
313
+                    catch (SocketTimeoutException e){
314
+                        timeout = true;
315
+                    }
313 316
                     catch (SocketException ex) {
314 317
                         timeout = true;
315 318
                     }