Merge pull request #316 from dismory/dev

Fix the duplicated `AFJSONDecode()` calling that cause message sending t...
This commit is contained in:
Mattt Thompson 2012-04-25 09:00:50 -07:00
commit 17ee2b4cf0

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) {