Skip to content
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

Fix double call of result reply on connection init #126

Merged
merged 1 commit into from
Nov 24, 2019
Merged

Fix double call of result reply on connection init #126

merged 1 commit into from
Nov 24, 2019

Conversation

psipaylo
Copy link
Contributor

@psipaylo psipaylo commented Nov 22, 2019

Fixes #106

I've been debugging and looking for possible reasons for "Reply already submitted" message that I've been able to catch on my own device and the only thing that could cause it is calling result.success or result.error twice or more on onBillingSetupFinished . And digging into the RN IAP lib led me to this quite similar problem occurred once not so long ago hyochan/react-native-iap#315

This improvement should protect the result and ensure it is replied no more than once.

@letiagoalves
Copy link

@hyochan can you make a release with this please?

@hyochan
Copy link
Owner

hyochan commented Nov 24, 2019

@letiagoalves Thanks for the reminder. I've just tested example and looks good on the basic feature set.

@hyochan hyochan merged commit 3728ab3 into hyochan:master Nov 24, 2019
@hyochan hyochan added bugfix enhancement New feature or request labels Nov 24, 2019
@hyochan
Copy link
Owner

hyochan commented Nov 24, 2019

Released in 2.0.5

@letiagoalves
Copy link

Thank you @hyochan.

I will make a release of my app with this new version and see if it fixes the fatal crashes I am having right now in production.
I will give you feedback in some days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

java.lang.IllegalStateException upon ending billing connection.
3 participants