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
{
OWSAssertIsOnMainThread();
[self ensureBackupExportState];
[self postDidChangeNotification];
dispatch_async(dispatch_get_main_queue(), ^{
[self ensureBackupExportState];
[self postDidChangeNotification];
});
}
#pragma mark - OWSBackupJobDelegate

Loading…
Cancel
Save