in case there is an image processing block, success block should be called on the same queue as without one.
This commit is contained in:
parent
7620d3e373
commit
91d4614028
1 changed files with 3 additions and 1 deletions
|
|
@ -113,7 +113,9 @@ static dispatch_queue_t image_request_operation_processing_queue() {
|
||||||
dispatch_async(image_request_operation_processing_queue(), ^(void) {
|
dispatch_async(image_request_operation_processing_queue(), ^(void) {
|
||||||
NSImage *processedImage = imageProcessingBlock(image);
|
NSImage *processedImage = imageProcessingBlock(image);
|
||||||
|
|
||||||
dispatch_async(dispatch_get_main_queue(), ^(void) {
|
dispatch_async(requestOperation.successCallbackQueue?
|
||||||
|
requestOperation.successCallbackQueue:
|
||||||
|
dispatch_get_main_queue(), ^(void) {
|
||||||
success(operation.request, operation.response, processedImage);
|
success(operation.request, operation.response, processedImage);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue