From 4800aba220d24d9bc8b9f328dd4cfd24d00d97b2 Mon Sep 17 00:00:00 2001 From: Teodor Ciuraru Date: Mon, 5 Apr 2021 13:16:54 +0300 Subject: [PATCH] Solve network requests not completing in Release [iOS] --- ios/RNFetchBlobRequest.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ios/RNFetchBlobRequest.m b/ios/RNFetchBlobRequest.m index cdbe6b1e5..bfa246dad 100644 --- a/ios/RNFetchBlobRequest.m +++ b/ios/RNFetchBlobRequest.m @@ -161,8 +161,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]) {