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) { failure:^(NSError *error) {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:TIMEOUT dispatch_async(dispatch_get_main_queue(), ^{
message:TIMEOUT_CONTACTS_DETAIL UIAlertView *alert = [[UIAlertView alloc] initWithTitle:TIMEOUT
delegate:nil message:TIMEOUT_CONTACTS_DETAIL
cancelButtonTitle:NSLocalizedString(@"OK", @"") delegate:nil
otherButtonTitles:nil]; cancelButtonTitle:NSLocalizedString(@"OK", @"")
[alert show]; otherButtonTitles:nil];
dispatch_async(dispatch_get_main_queue(), ^{ [alert show];
[self updateAfterRefreshTry]; [self updateAfterRefreshTry];
}); });
}]; }];

Loading…
Cancel
Save