Skip to content

Commit

Permalink
Merge pull request AFNetworking#911 from runmad/master
Browse files Browse the repository at this point in the history
Check for finished operations, not cancelled operations to increment the numberOfFinishedOperations count
  • Loading branch information
mattt committed Apr 11, 2013
2 parents df6a223 + 9d91b95 commit 878ed0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AFNetworking/AFHTTPClient.m
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ - (void)enqueueBatchOfHTTPRequestOperations:(NSArray *)operations
}

NSInteger numberOfFinishedOperations = [[operations indexesOfObjectsPassingTest:^BOOL(id op, NSUInteger __unused idx, BOOL __unused *stop) {
return [op isCancelled];
return [op isFinished];
}] count];

if (progressBlock) {
Expand Down

0 comments on commit 878ed0c

Please sign in to comment.