CB-8599 fix threading issue with cameraPicker (fixes #72)

Signed-off-by: Shazron Abdullah <shazron@apache.org>
This commit is contained in:
Murat Sutunc
2015-03-03 13:11:01 -08:00
committed by Shazron Abdullah
parent 2c597a389b
commit bca73e6ee9
+5 -3
View File
@@ -167,9 +167,11 @@ static NSString* toBase64(NSData* data) {
weakSelf.hasPendingOperation = NO;
} else {
[weakSelf.viewController presentViewController:cameraPicker animated:YES completion:^{
weakSelf.hasPendingOperation = NO;
}];
dispatch_async(dispatch_get_main_queue(), ^{
[weakSelf.viewController presentViewController:cameraPicker animated:YES completion:^{
weakSelf.hasPendingOperation = NO;
}];
});
}
}];
}