Selaa lähdekoodia

Perform InAppProductQueryRequest on calling thread

Andrea Bizzotto 8 vuotta sitten
vanhempi
commit
edc3b2a553
1 muutettua tiedostoa jossa 2 lisäystä ja 6 poistoa
  1. 2 6
      SwiftyStoreKit/InAppProductQueryRequest.swift

+ 2 - 6
SwiftyStoreKit/InAppProductQueryRequest.swift

@@ -48,14 +48,10 @@ class InAppProductQueryRequest: NSObject, SKProductsRequestDelegate {
     }
 
     func start() {
-        DispatchQueue.global(qos: .default).async {
-            self.request.start()
-        }
+        self.request.start()
     }
     func cancel() {
-        DispatchQueue.global(qos: .default).async {
-            self.request.cancel()
-        }
+        self.request.cancel()
     }
     
     // MARK: SKProductsRequestDelegate