Browse Source

Perform InAppProductQueryRequest on calling thread

Andrea Bizzotto 8 years ago
parent
commit
edc3b2a553
1 changed files with 2 additions and 6 deletions
  1. 2 6
      SwiftyStoreKit/InAppProductQueryRequest.swift

+ 2 - 6
SwiftyStoreKit/InAppProductQueryRequest.swift

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