Skip to content
Browse files

[NSManagedObjectContext MR_saveInBackgroundErrorHandler:completion:]

- Wait for the block to complete.
  • Loading branch information...
1 parent f0246e9 commit eabb14701432039307ba05ca62d7cf74555be157 Jwie committed
2 MagicalRecord/Categories/NSManagedObjectContext/NSManagedObjectContext+MagicalSaves.m
@@ -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.
Something went wrong with that request. Please try again.