|
@@ -183,6 +183,7 @@ class KMInAppPurchaseManager: NSObject {
|
|
|
func checkSubscriptionStatus(_ completion: @escaping KMPurchaseCheckSubscriptionStatusCompletion) {
|
|
|
self.isCheckSubscriptionStatus = true
|
|
|
self.restorePurchases { [weak self] isSuccess, error in
|
|
|
+ self?.isCheckSubscriptionStatus = false
|
|
|
if isSuccess {
|
|
|
let paymentQueue = SKPaymentQueue.default()
|
|
|
let transactions = paymentQueue.transactions
|
|
@@ -201,7 +202,6 @@ class KMInAppPurchaseManager: NSObject {
|
|
|
completion(false)
|
|
|
}
|
|
|
}
|
|
|
- self?.isCheckSubscriptionStatus = false
|
|
|
}
|
|
|
}
|
|
|
}
|