Skip to content

Commit 6cf0fa8

Browse files
committed
Add timeout for ressource
1 parent d0128f5 commit 6cf0fa8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ios/RNFetchBlobRequest.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ - (void) sendRequest:(__weak NSDictionary * _Nullable )options
122122

123123
if (timeout > 0) {
124124
defaultConfigObject.timeoutIntervalForRequest = timeout/1000;
125+
defaultConfigObject.timeoutIntervalForResource = timeout/1000;
125126
}
126127

127128
if([options valueForKey:CONFIG_WIFI_ONLY] != nil && ![options[CONFIG_WIFI_ONLY] boolValue]){

0 commit comments

Comments
 (0)