Skip to content

Commit

Permalink
Fix crash when getting a billing disconnect callback
Browse files Browse the repository at this point in the history
  • Loading branch information
Pururun committed Nov 20, 2023
1 parent 1612678 commit 0ac7eb3
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,7 @@ class BillingRepository(context: Context) {
billingClient.startConnection(
object : BillingClientStateListener {
override fun onBillingServiceDisconnected() {
// Maybe do something here?
continuation.resumeWithException(
BillingException(
BillingResponseCode.SERVICE_DISCONNECTED,
"Billing service disconnected"
)
)
// We will reconnect on demand.
}

override fun onBillingSetupFinished(result: BillingResult) {
Expand Down

0 comments on commit 0ac7eb3

Please sign in to comment.