diff --git a/ios/RNFetchBlobNetwork.m b/ios/RNFetchBlobNetwork.m index 7be57fc59..c2f6d1680 100644 --- a/ios/RNFetchBlobNetwork.m +++ b/ios/RNFetchBlobNetwork.m @@ -106,8 +106,12 @@ @implementation RNFetchBlobNetwork - (id)init { self = [super init]; if(taskQueue == nil) { - taskQueue = [[NSOperationQueue alloc] init]; - taskQueue.maxConcurrentOperationCount = 10; + @synchronized ([RNFetchBlobNetwork class]) { + if (taskQueue == nil) { + taskQueue = [[NSOperationQueue alloc] init]; + taskQueue.maxConcurrentOperationCount = 10; + } + } } return self; }