Using addOperations:waitUntilFinished: instead of adding each operation individually in -enqueueBatchOfHTTPRequestOperations:... to fix an edge case bug where only one of the operations in a batch will run.
This commit is contained in:
parent
24dfebb424
commit
ff8e70a49c
1 changed files with 1 additions and 2 deletions
|
|
@ -590,9 +590,8 @@ static void AFNetworkReachabilityReleaseCallback(const void *info) {}
|
||||||
|
|
||||||
dispatch_group_enter(dispatchGroup);
|
dispatch_group_enter(dispatchGroup);
|
||||||
[batchedOperation addDependency:operation];
|
[batchedOperation addDependency:operation];
|
||||||
|
|
||||||
[self enqueueHTTPRequestOperation:operation];
|
|
||||||
}
|
}
|
||||||
|
[self.operationQueue addOperations:operations waitUntilFinished:NO];
|
||||||
[self.operationQueue addOperation:batchedOperation];
|
[self.operationQueue addOperation:batchedOperation];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue