Skip to content

Commit

Permalink
Fix posible problem clearTransactionsIOS promise
Browse files Browse the repository at this point in the history
Solution recommended by rusty120 to avoid a possible deadlock in the promise of the clearTransactionsIOS

dooboolab-community#1120 (comment)
  • Loading branch information
andresordonezfm committed Jan 7, 2021
1 parent 55eb7bb commit f690c6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/RNIapIos.m
Expand Up @@ -835,7 +835,7 @@ - (void)requestDidFinish:(SKRequest *)request {
-(void)paymentQueue:(SKPaymentQueue *)queue removedTransactions:(NSArray *)transactions {
NSLog(@"removedTransactions");
if (countPendingTransaction != nil && countPendingTransaction > 0) {
countPendingTransaction--;
countPendingTransaction -= [transactions count];
if (countPendingTransaction == 0) {
[self resolvePromisesForKey:@"cleaningTransactions" value:nil];
countPendingTransaction = nil;
Expand Down

0 comments on commit f690c6e

Please sign in to comment.