Skip to content

Adding temporary workaround to call FirebaseAuth completion block in … #339

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 22, 2017

Conversation

yramanchuk
Copy link
Contributor

Workaround to fix firebase/firebase-ios-sdk#304

@yramanchuk yramanchuk merged commit dc3b311 into master Sep 22, 2017
@yramanchuk yramanchuk deleted the callback branch September 22, 2017 19:20
if ([NSThread isMainThread]) {
completionBlock();
} else {
dispatch_sync(dispatch_get_main_queue(), completionBlock);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I missed this earlier... I think we'd better to do dispatch_async instead of dispatch_sync, otherwise if the delegate calls FIRAuth methods there is a risk of deadlock.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 1eb511c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FUIPhoneAuth crashes when entering invalid phone number
4 participants