Fix thread safety around CloudKit notifications.

pull/1/head
Matthew Chen 7 years ago
parent d5b2b2cdd3
commit 734cc22cb3

@ -567,11 +567,11 @@ NSError *OWSBackupErrorWithDescription(NSString *description)
- (void)ckAccountChanged - (void)ckAccountChanged
{ {
OWSAssertIsOnMainThread(); dispatch_async(dispatch_get_main_queue(), ^{
[self ensureBackupExportState];
[self ensureBackupExportState];
[self postDidChangeNotification];
[self postDidChangeNotification]; });
} }
#pragma mark - OWSBackupJobDelegate #pragma mark - OWSBackupJobDelegate

Loading…
Cancel
Save