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;
|
||||
self.products = products;
|
||||
|
||||
for (id<MPInAppDelegate> productObserver in self.productObservers)
|
||||
[productObserver updateWithProducts:self.products transactions:[self transactions]];
|
||||
PearlMainQueue( ^{
|
||||
for (id<MPInAppDelegate> productObserver in self.productObservers)
|
||||
[productObserver updateWithProducts:self.products transactions:[self transactions]];
|
||||
} );
|
||||
}
|
||||
|
||||
- (void)request:(SKRequest *)request didFailWithError:(NSError *)error {
|
||||
|
Loading…
Reference in New Issue
Block a user