mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-05-06 08:53:25 +08:00
Invoke self instead of self.delegate in thread safe invocation from managed object loader. refs #655
This commit is contained in:
@@ -167,7 +167,7 @@
|
||||
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];
|
||||
|
||||
Reference in New Issue
Block a user