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-dead-object-exception #34

Merged

Conversation

DHosseiny
Copy link
Collaborator

Fix dead object exception when bazaar process get killed for any reason.

Comment on lines +88 to +90
} catch (ignored: DeadObjectException) {
// onServiceDisconnected will get called so no need to do anything
}
Copy link
Contributor

Choose a reason for hiding this comment

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

We shouldn't suppress this exception. Developer should know that their app has disconnected from the IAB service. So, I'd suggest to do this instead:

callback?.connectionFailed?.invoke(e)

@PHELAT PHELAT changed the base branch from master to release-1.0.0-alpha09 December 10, 2020 19:09
@PHELAT PHELAT merged commit c809ed5 into cafebazaar:release-1.0.0-alpha09 Dec 13, 2020
PHELAT pushed a commit that referenced this pull request Dec 28, 2020
* Do not pass IInAppBillingService as a parameter

* Catch DeadObjectException
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.

2 participants