Skip to content

Commit

Permalink
Merge pull request #723 from teo029/issue-722
Browse files Browse the repository at this point in the history
Resolve #722 "iOS Release network requests not completing"
  • Loading branch information
rpenfold authored Feb 23, 2022
2 parents 988aea9 + 4800aba commit 92ce51a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ios/RNFetchBlobRequest.m
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,9 @@ - (void) sendRequest:(__weak NSDictionary * _Nullable )options
respFile = NO;
}

self.task = [session dataTaskWithRequest:req];
[self.task resume];
NSURLSessionDataTask *task = [session dataTaskWithRequest:req];
[task resume];
self.task = task;

// network status indicator
if ([[options objectForKey:CONFIG_INDICATOR] boolValue]) {
Expand Down

0 comments on commit 92ce51a

Please sign in to comment.