2
0

Fix deadlock when PSC's store becomes available.

This commit is contained in:
Maarten Billemont 2014-11-10 16:45:25 -05:00
parent f0fa350e64
commit 09d67113a2

View File

@ -682,8 +682,10 @@ referenceSizeForFooterInSection:(NSInteger)section {
} ); } );
PearlAddNotificationObserver( NSPersistentStoreCoordinatorStoresDidChangeNotification, [MPiOSAppDelegate get].storeCoordinator, nil, PearlAddNotificationObserver( NSPersistentStoreCoordinatorStoresDidChangeNotification, [MPiOSAppDelegate get].storeCoordinator, nil,
^(MPUsersViewController *self, NSNotification *note) { ^(MPUsersViewController *self, NSNotification *note) {
[self registerObservers]; PearlMainQueue( ^{
[self reloadUsers]; [self registerObservers];
[self reloadUsers];
} );
} ); } );
} }