Fix the duplicated AFJSONDecode() calling that cause message sending to deallocated NSError object
This commit is contained in:
parent
ce23a0757b
commit
b76b28f4b3
1 changed files with 1 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ static dispatch_queue_t json_request_operation_processing_queue() {
|
||||||
}
|
}
|
||||||
|
|
||||||
- (id)responseJSON {
|
- (id)responseJSON {
|
||||||
if (!_responseJSON && [self.responseData length] > 0 && [self isFinished]) {
|
if (!_responseJSON && [self.responseData length] > 0 && [self isFinished] && !self.JSONError) {
|
||||||
NSError *error = nil;
|
NSError *error = nil;
|
||||||
|
|
||||||
if ([self.responseData length] == 0) {
|
if ([self.responseData length] == 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue