Replaces a failure block with dispatchFailureBlock method

I missed that on the initial transform.
This commit is contained in:
Peter Steinberger 2012-02-08 15:05:19 -08:00
parent 800d05181d
commit 28e580c961

View file

@ -124,11 +124,7 @@ static dispatch_queue_t json_request_operation_processing_queue() {
} }
if (self.error) { if (self.error) {
if (failure) { [self dispatchFailureBlock:failure];
dispatch_async(self.failureCallbackQueue ? self.failureCallbackQueue : dispatch_get_main_queue(), ^{
failure(self, self.error);
});
}
} else { } else {
dispatch_async(json_request_operation_processing_queue(), ^(void) { dispatch_async(json_request_operation_processing_queue(), ^(void) {
id JSON = self.responseJSON; id JSON = self.responseJSON;