From 28e580c9611c66c76125678b9f354cac2b0df392 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 8 Feb 2012 15:05:19 -0800 Subject: [PATCH] Replaces a failure block with dispatchFailureBlock method I missed that on the initial transform. --- AFNetworking/AFJSONRequestOperation.m | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/AFNetworking/AFJSONRequestOperation.m b/AFNetworking/AFJSONRequestOperation.m index 13bfd74..6d39413 100644 --- a/AFNetworking/AFJSONRequestOperation.m +++ b/AFNetworking/AFJSONRequestOperation.m @@ -124,11 +124,7 @@ static dispatch_queue_t json_request_operation_processing_queue() { } if (self.error) { - if (failure) { - dispatch_async(self.failureCallbackQueue ? self.failureCallbackQueue : dispatch_get_main_queue(), ^{ - failure(self, self.error); - }); - } + [self dispatchFailureBlock:failure]; } else { dispatch_async(json_request_operation_processing_queue(), ^(void) { id JSON = self.responseJSON;