Skip to content

Commit

Permalink
Fix for issue wkh237#295
Browse files Browse the repository at this point in the history
  • Loading branch information
jsfu committed Feb 27, 2018
1 parent e6480db commit 8e9b314
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ios/RNFetchBlobNetwork.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8e9b314

Please sign in to comment.