Fixing AFHTTPRequestOperation -setCancelled:

This commit is contained in:
Mattt Thompson 2011-09-16 10:09:24 -05:00
parent a3970f823d
commit 085d14ed82

View file

@ -237,12 +237,14 @@ static NSThread *_networkRequestThread = nil;
}
}
- (void)setCancelled:(BOOL)isCancelled {
- (void)setCancelled:(BOOL)cancelled {
[self willChangeValueForKey:@"isCancelled"];
_cancelled = YES;
_cancelled = cancelled;
[self didChangeValueForKey:@"isCancelled"];
if ([self isCancelled]) {
self.state = AFHTTPOperationFinishedState;
}
}
- (NSString *)responseString {