Skip to content
Browse files

Invoke self instead of self.delegate in thread safe invocation from m…

…anaged object loader. refs #655
  • Loading branch information...
1 parent ac05b6d commit b27be1cbc561ccd7411c61db1d6a27856809e637 @blakewatters blakewatters committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 Code/CoreData/RKManagedObjectLoader.m
2 Code/CoreData/RKManagedObjectLoader.m
@@ -167,7 +167,7 @@ - (void)processMappingResult:(RKObjectMappingResult*)result {
RKLogError(@"Failed to save managed object context after mapping completed: %@", [error localizedDescription]);
NSMethodSignature* signature = [(NSObject *)self methodSignatureForSelector:@selector(informDelegateOfError:)];
RKManagedObjectThreadSafeInvocation* invocation = [RKManagedObjectThreadSafeInvocation invocationWithMethodSignature:signature];
- [invocation setTarget:self.delegate];
+ [invocation setTarget:self];
[invocation setSelector:@selector(informDelegateOfError:)];
[invocation setArgument:&error atIndex:2];
[invocation invokeOnMainThread];

0 comments on commit b27be1c

Please sign in to comment.
Something went wrong with that request. Please try again.