Merge pull request #911 from runmad/master
Check for finished operations, not cancelled operations to increment the numberOfFinishedOperations count
This commit is contained in:
commit
b3267b85b0
1 changed files with 1 additions and 1 deletions
|
|
@ -606,7 +606,7 @@ static void AFNetworkReachabilityReleaseCallback(const void *info) {
|
||||||
}
|
}
|
||||||
|
|
||||||
NSInteger numberOfFinishedOperations = [[operations indexesOfObjectsPassingTest:^BOOL(id op, NSUInteger __unused idx, BOOL __unused *stop) {
|
NSInteger numberOfFinishedOperations = [[operations indexesOfObjectsPassingTest:^BOOL(id op, NSUInteger __unused idx, BOOL __unused *stop) {
|
||||||
return [op isCancelled];
|
return [op isFinished];
|
||||||
}] count];
|
}] count];
|
||||||
|
|
||||||
if (progressBlock) {
|
if (progressBlock) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue