Skip to content

Commit 8d075dd

Browse files
committed
Check for finished operations in order to increments the numberOfFinishedOperations count
1 parent 0d49f73 commit 8d075dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AFNetworking/AFHTTPClient.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ - (void)enqueueBatchOfHTTPRequestOperations:(NSArray *)operations
606606
}
607607

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

612612
if (progressBlock) {

0 commit comments

Comments
 (0)