Merge pull request #911 from runmad/master

Check for finished operations, not cancelled operations to increment the numberOfFinishedOperations count
This commit is contained in:
Mattt Thompson 2013-04-11 01:07:10 -07:00
commit b3267b85b0

View file

@ -606,7 +606,7 @@ static void AFNetworkReachabilityReleaseCallback(const void *info) {
}
NSInteger numberOfFinishedOperations = [[operations indexesOfObjectsPassingTest:^BOOL(id op, NSUInteger __unused idx, BOOL __unused *stop) {
return [op isCancelled];
return [op isFinished];
}] count];
if (progressBlock) {