From 3bb81af425ace39a10a31017abfc5db8361948d7 Mon Sep 17 00:00:00 2001 From: Ladd Van Tol Date: Thu, 16 Mar 2023 16:59:51 -0700 Subject: [PATCH] Reduce concurrent operation count from 10 to 1 > The queue should be a serial queue, in order to ensure the correct ordering of callbacks. https://developer.apple.com/documentation/foundation/nsurlsession/1411597-sessionwithconfiguration --- ios/RNFetchBlobNetwork.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/RNFetchBlobNetwork.m b/ios/RNFetchBlobNetwork.m index f2e40b6b4..233a7f895 100644 --- a/ios/RNFetchBlobNetwork.m +++ b/ios/RNFetchBlobNetwork.m @@ -52,7 +52,7 @@ - (id)init { self.taskQueue = [[NSOperationQueue alloc] init]; self.taskQueue.qualityOfService = NSQualityOfServiceUtility; - self.taskQueue.maxConcurrentOperationCount = 10; + self.taskQueue.maxConcurrentOperationCount = 1; self.rebindProgressDict = [NSMutableDictionary dictionary]; self.rebindUploadProgressDict = [NSMutableDictionary dictionary]; }