mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-23 20:31:13 +08:00
Modified asserts in RKObjectLoader processMappingResult to allow synchronous requests.
This commit is contained in:
committed by
Blake Watters
parent
d488452bcd
commit
a1e2061106
@@ -146,7 +146,7 @@
|
||||
@protected
|
||||
*/
|
||||
- (void)processMappingResult:(RKObjectMappingResult*)result {
|
||||
NSAssert(![NSThread isMainThread], @"Mapping result processing should occur on a background thread");
|
||||
NSAssert(_sentSynchronously || ![NSThread isMainThread], @"Mapping result processing should occur on a background thread");
|
||||
[self performSelectorOnMainThread:@selector(informDelegateOfObjectLoadWithResultDictionary:) withObject:[result asDictionary] waitUntilDone:YES];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user