Removed superclass call to didFinishLoad: in RKObjectLoader. Was resulting in duplicated dispatch of life-cycle requests. Fixes #44

This commit is contained in:
Blake Watters
2011-04-12 19:11:31 -04:00
parent 8432923bba
commit 9dcd7f3022
2 changed files with 6 additions and 3 deletions

View File

@@ -199,7 +199,11 @@
- (void)didFinishLoad:(RKResponse*)response {
_response = [response retain];
if ([_delegate respondsToSelector:@selector(request:didLoadResponse:)]) {
[_delegate request:self didLoadResponse:response];
}
if (NO == [self encounteredErrorWhileProcessingRequest:response]) {
// TODO: Should probably be an expected MIME types array set by client/manager
// if ([self.objectMapper hasParserForMIMEType:[response MIMEType]) canMapFromMIMEType:
@@ -215,8 +219,6 @@
[self responseProcessingSuccessful:NO withError:nil];
}
}
[super didFinishLoad:response];
}
@end