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

Fixes the error where DataResult is called multiple times #276

Conversation

dhmaciel
Copy link

@dhmaciel dhmaciel commented Sep 4, 2024

We have a crash registered on our Crashlytics related to an issue in the Pay library. It's calling the result more than once, resulting in a crash from the lib.
Testing on the library, I was able to reproduce it:
image

20240903_190431_113635
The solution was to prevent calls for dataResult callback more than one time per instance.

To fix it I created a flag to prevent the dataResult from being called multiple times.

Copy link

@ViniciusDeep ViniciusDeep left a comment

Choose a reason for hiding this comment

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

Some of changes are fomarting maybe because the configuration into your IDE, maybe we can roll it back and just provide the necessary fix

@dhmaciel dhmaciel force-pushed the fix-resend-data-result-when-sent-already branch from c2eb4bd to d38dfef Compare September 4, 2024 20:36
Copy link

@ViniciusDeep ViniciusDeep left a comment

Choose a reason for hiding this comment

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

LGTM!

@JlUgia
Copy link
Member

JlUgia commented Oct 6, 2024

#282 fixes this issue too, so we don't need to include additional tracking. Feel free to take a look and provide feedback.
Thank you for your contribution.

@JlUgia JlUgia closed this Oct 6, 2024
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.

3 participants