Skip to content

Commit

Permalink
[photos] Fix build break in photos sample app.
Browse files Browse the repository at this point in the history
  • Loading branch information
jverkoey committed Jan 31, 2012
1 parent 8ed7af8 commit e044af0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ - (void)requestImageFromSource: (NSString *)source

// The completion block will be executed on the main thread, so we must be careful not
// to do anything computationally expensive here.
[readOp setDidFinishBlock:^{
[readOp setDidFinishBlock:^(NIOperation* operation) {
UIImage* image = [UIImage imageWithData:readOp.data];

// Store the image in the correct image cache.
Expand Down Expand Up @@ -111,7 +111,7 @@ - (void)requestImageFromSource: (NSString *)source

// When this request is canceled (like when we're quickly flipping through an album)
// the request will fail, so we must be careful to remove the request from the active set.
[readOp setDidFailWithErrorBlock:^(NSError *error) {
[readOp setDidFailWithErrorBlock:^(NIOperation* operation, NSError* error) {
[_activeRequests removeObject:identifierKey];
}];

Expand Down

0 comments on commit e044af0

Please sign in to comment.