mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2025-01-19 11:52:53 +08:00
CB-8599 fix threading issue with cameraPicker (fixes #72)
Signed-off-by: Shazron Abdullah <shazron@apache.org>
This commit is contained in:
parent
2c597a389b
commit
bca73e6ee9
@ -167,9 +167,11 @@ static NSString* toBase64(NSData* data) {
|
|||||||
weakSelf.hasPendingOperation = NO;
|
weakSelf.hasPendingOperation = NO;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
dispatch_async(dispatch_get_main_queue(), ^{
|
||||||
[weakSelf.viewController presentViewController:cameraPicker animated:YES completion:^{
|
[weakSelf.viewController presentViewController:cameraPicker animated:YES completion:^{
|
||||||
weakSelf.hasPendingOperation = NO;
|
weakSelf.hasPendingOperation = NO;
|
||||||
}];
|
}];
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user