Check for finished operations in order to increments the numberOfFinishedOperations count
This commit is contained in:
parent
0d49f731a2
commit
8d075dde30
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