Modified asserts in RKObjectLoader processMappingResult to allow synchronous requests.

This commit is contained in:
Julien Grimault
2011-11-23 09:35:05 +08:00
committed by Blake Watters
parent d488452bcd
commit a1e2061106
2 changed files with 2 additions and 2 deletions

View File

@@ -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];
}