diff --git a/android/src/main/java/com/dooboolab/RNIap/RNIapModule.java b/android/src/main/java/com/dooboolab/RNIap/RNIapModule.java index 04ecc5e72..4a17ae6f6 100644 --- a/android/src/main/java/com/dooboolab/RNIap/RNIapModule.java +++ b/android/src/main/java/com/dooboolab/RNIap/RNIapModule.java @@ -124,10 +124,10 @@ private void ensureConnection (final Promise promise, final Runnable callback) { public void onBillingSetupFinished(@BillingClient.BillingResponse int responseCode) { if (responseCode == BillingClient.BillingResponse.OK ) { Log.d(TAG, "billing client ready"); - if (!bSetupCallbackConsumed) { - bSetupCallbackConsumed = true; + if (!bSetupCallbackConsumed) { + bSetupCallbackConsumed = true; callback.run(); - } + } } else { rejectPromiseWithBillingError(promise, responseCode); }