Ensure updates happen on main thread.
This commit is contained in:
parent
dacdf25fe8
commit
14387a2310
@ -149,8 +149,10 @@ PearlAssociatedObjectProperty( NSMutableArray*, ProductObservers, productObserve
|
|||||||
products[product.productIdentifier] = product;
|
products[product.productIdentifier] = product;
|
||||||
self.products = products;
|
self.products = products;
|
||||||
|
|
||||||
|
PearlMainQueue( ^{
|
||||||
for (id<MPInAppDelegate> productObserver in self.productObservers)
|
for (id<MPInAppDelegate> productObserver in self.productObservers)
|
||||||
[productObserver updateWithProducts:self.products transactions:[self transactions]];
|
[productObserver updateWithProducts:self.products transactions:[self transactions]];
|
||||||
|
} );
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)request:(SKRequest *)request didFailWithError:(NSError *)error {
|
- (void)request:(SKRequest *)request didFailWithError:(NSError *)error {
|
||||||
|
Loading…
Reference in New Issue
Block a user