Skip to content

Commit 4800aba

Browse files
author
Teodor Ciuraru
committed
Solve network requests not completing in Release [iOS]
1 parent dcbde6f commit 4800aba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ios/RNFetchBlobRequest.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,9 @@ - (void) sendRequest:(__weak NSDictionary * _Nullable )options
161161
respFile = NO;
162162
}
163163

164-
self.task = [session dataTaskWithRequest:req];
165-
[self.task resume];
164+
NSURLSessionDataTask *task = [session dataTaskWithRequest:req];
165+
[task resume];
166+
self.task = task;
166167

167168
// network status indicator
168169
if ([[options objectForKey:CONFIG_INDICATOR] boolValue]) {

0 commit comments

Comments
 (0)