show alert must happen in main thread (#1119)

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

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

Loading…
Cancel
Save