Fix the duplicated AFJSONDecode() calling that cause message sending to deallocated NSError object

This commit is contained in:
dismory 2012-04-25 16:02:29 +08:00
parent ce23a0757b
commit b76b28f4b3

View file

@ -66,7 +66,7 @@ static dispatch_queue_t json_request_operation_processing_queue() {
}
- (id)responseJSON {
if (!_responseJSON && [self.responseData length] > 0 && [self isFinished]) {
if (!_responseJSON && [self.responseData length] > 0 && [self isFinished] && !self.JSONError) {
NSError *error = nil;
if ([self.responseData length] == 0) {