Skip to content
This repository has been archived by the owner on Jul 28, 2020. It is now read-only.

Commit

Permalink
Merge pull request AFNetworking#76 from evanlong/master
Browse files Browse the repository at this point in the history
Fixing a couple of issues in the JSON and XML operation classes
  • Loading branch information
Mattt Thompson committed Oct 18, 2011
2 parents 1de3d17 + 436fbe8 commit 810096b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions AFNetworking/AFJSONRequestOperation.m
Expand Up @@ -65,9 +65,7 @@ + (AFJSONRequestOperation *)JSONRequestOperationWithRequest:(NSURLRequest *)urlR
}
} else {
dispatch_async(json_request_operation_processing_queue(), ^(void) {
NSError *error = nil;
id JSON = operation.responseJSON;
operation.error = error;

dispatch_async(dispatch_get_main_queue(), ^(void) {
if (operation.error) {
Expand Down
4 changes: 3 additions & 1 deletion AFNetworking/AFXMLRequestOperation.m
Expand Up @@ -70,7 +70,9 @@ + (AFXMLRequestOperation *)XMLParserRequestOperationWithRequest:(NSURLRequest *)
} else {
NSXMLParser *XMLParser = operation.responseXMLParser;
if (success) {
success(operation.request, operation.response, XMLParser);
dispatch_async(dispatch_get_main_queue(), ^(void) {
success(operation.request, operation.response, XMLParser);
});
}
}
};
Expand Down

0 comments on commit 810096b

Please sign in to comment.