Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Check for finished operations, not cancelled operations to increment the numberOfFinishedOperations count #911

Merged
merged 1 commit into from
Apr 11, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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