diff --git a/Sources/SwiftyStoreKit/ProductsInfoController.swift b/Sources/SwiftyStoreKit/ProductsInfoController.swift index 49f0497..611385c 100644 --- a/Sources/SwiftyStoreKit/ProductsInfoController.swift +++ b/Sources/SwiftyStoreKit/ProductsInfoController.swift @@ -49,17 +49,17 @@ class ProductsInfoController: NSObject { } // As we can have multiple inflight requests, we store them in a dictionary by product ids - private var _inflightRequests: [Set: InAppProductQuery] = [:] + private var inflightRequestsStorage: [Set: InAppProductQuery] = [:] private let requestsQueue = DispatchQueue(label: "inflightRequestsQueue", attributes: .concurrent) private var inflightRequests: [Set: InAppProductQuery] { get { requestsQueue.sync { - _inflightRequests + inflightRequestsStorage } } set { requestsQueue.sync(flags: .barrier) { - self._inflightRequests = newValue + self.inflightRequestsStorage = newValue } } }