From d564afe3ece065987e2e7fe7303322ab80916180 Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Mon, 6 Apr 2020 19:24:46 -0400 Subject: [PATCH] Delegate main-thread activity on the main thread. --- platform-darwin/Source/iOS/MPUsersViewController.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/platform-darwin/Source/iOS/MPUsersViewController.m b/platform-darwin/Source/iOS/MPUsersViewController.m index f2be1319..99bb1262 100644 --- a/platform-darwin/Source/iOS/MPUsersViewController.m +++ b/platform-darwin/Source/iOS/MPUsersViewController.m @@ -699,8 +699,10 @@ referenceSizeForFooterInSection:(NSInteger)section { } ); PearlAddNotificationObserver( NSPersistentStoreCoordinatorStoresDidChangeNotification, [MPiOSAppDelegate get].storeCoordinator, nil, ^(MPUsersViewController *self, NSNotification *note) { - [self registerObservers]; - [self reloadUsers]; + PearlMainQueue( ^{ + [self registerObservers]; + [self reloadUsers]; + } ); } ); }