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:
Mattt Thompson 2012-11-06 12:03:19 -08:00
parent 24dfebb424
commit ff8e70a49c

View file

@ -590,9 +590,8 @@ static void AFNetworkReachabilityReleaseCallback(const void *info) {}
dispatch_group_enter(dispatchGroup);
[batchedOperation addDependency:operation];
[self enqueueHTTPRequestOperation:operation];
}
[self.operationQueue addOperations:operations waitUntilFinished:NO];
[self.operationQueue addOperation:batchedOperation];
}