Fix the wrong subclass which does not override `isConcurrent` method
This commit is contained in:
parent
f51992cfd6
commit
54771ceb22
|
@ -41,9 +41,8 @@
|
|||
return;
|
||||
}
|
||||
|
||||
[self willChangeValueForKey:@"isExecuting"];
|
||||
self.finished = NO;
|
||||
self.executing = YES;
|
||||
[self didChangeValueForKey:@"isExecuting"];
|
||||
|
||||
if (self.executionBlock) {
|
||||
self.executionBlock(self);
|
||||
|
@ -68,8 +67,8 @@
|
|||
- (void)complete {
|
||||
@synchronized (self) {
|
||||
if (self.isExecuting) {
|
||||
self.executing = NO;
|
||||
self.finished = YES;
|
||||
self.executing = NO;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -86,4 +85,8 @@
|
|||
[self didChangeValueForKey:@"isExecuting"];
|
||||
}
|
||||
|
||||
- (BOOL)isConcurrent {
|
||||
return YES;
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in New Issue