Commit dd89e6fd by David Muzi

fix race condition in shop fetch for Apple Pay

parent c60138e3
...@@ -147,7 +147,7 @@ NSString * BUYURLKey = @"url"; ...@@ -147,7 +147,7 @@ NSString * BUYURLKey = @"url";
__block NSError *checkoutError = nil; __block NSError *checkoutError = nil;
// download the shop // download the shop
if (self.shop != nil) { if (self.shop == nil) {
dispatch_group_enter(group); dispatch_group_enter(group);
[self loadShopWithCallback:^(BOOL success, NSError *error) { [self loadShopWithCallback:^(BOOL success, NSError *error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment