From 0ac7eb35b744105fa9be65f131ea8648986750a5 Mon Sep 17 00:00:00 2001 From: Jonatan Rhodin Date: Mon, 20 Nov 2023 11:01:31 +0100 Subject: [PATCH] Fix crash when getting a billing disconnect callback --- .../mullvad/mullvadvpn/lib/billing/BillingRepository.kt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/android/lib/billing/src/main/kotlin/net/mullvad/mullvadvpn/lib/billing/BillingRepository.kt b/android/lib/billing/src/main/kotlin/net/mullvad/mullvadvpn/lib/billing/BillingRepository.kt index 6274f8cb6f06..f9239516d9a8 100644 --- a/android/lib/billing/src/main/kotlin/net/mullvad/mullvadvpn/lib/billing/BillingRepository.kt +++ b/android/lib/billing/src/main/kotlin/net/mullvad/mullvadvpn/lib/billing/BillingRepository.kt @@ -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) {