Permalink
Browse files

[NSManagedObjectContext MR_saveInBackgroundErrorHandler:completion:]

- Wait for the block to complete.
  • Loading branch information...
Jwie
Jwie committed Jul 6, 2012
1 parent f0246e9 commit eabb14701432039307ba05ca62d7cf74555be157
@@ -98,7 +98,7 @@ - (void) MR_saveInBackgroundErrorHandler:(void (^)(NSError *))errorCallback;
- (void) MR_saveInBackgroundErrorHandler:(void (^)(NSError *))errorCallback completion:(void (^)(void))completion;
{
- [self performBlock:^{
+ [self performBlockAndWait:^{
[self MR_saveWithErrorCallback:errorCallback];
if (self == [[self class] MR_defaultContext])

0 comments on commit eabb147

Please sign in to comment.