show alert must happen in main thread (#1119)

//freebie
pull/1/head
Michael Kirk 9 years ago
parent 9d4befd08c
commit 7d8292fd53

@ -479,13 +479,13 @@
}); });
} }
failure:^(NSError *error) { failure:^(NSError *error) {
dispatch_async(dispatch_get_main_queue(), ^{
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:TIMEOUT UIAlertView *alert = [[UIAlertView alloc] initWithTitle:TIMEOUT
message:TIMEOUT_CONTACTS_DETAIL message:TIMEOUT_CONTACTS_DETAIL
delegate:nil delegate:nil
cancelButtonTitle:NSLocalizedString(@"OK", @"") cancelButtonTitle:NSLocalizedString(@"OK", @"")
otherButtonTitles:nil]; otherButtonTitles:nil];
[alert show]; [alert show];
dispatch_async(dispatch_get_main_queue(), ^{
[self updateAfterRefreshTry]; [self updateAfterRefreshTry];
}); });
}]; }];

Loading…
Cancel
Save