Skip to content

Commit

Permalink
Fix concurrency issues on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
yusuftor committed Nov 13, 2024
1 parent a896a1c commit 6200048
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ final class TransactionManager {
)

let paywallInfo = await paywallViewController.info
Task {
Task { [isObserved] in
let trackedEvent = InternalSuperwallEvent.Transaction(
state: .fail(.failure(error.safeLocalizedDescription, product)),
paywallInfo: paywallInfo,
Expand All @@ -415,7 +415,7 @@ final class TransactionManager {
error: error
)

Task {
Task { [isObserved] in
let trackedEvent = InternalSuperwallEvent.Transaction(
state: .fail(.failure(error.safeLocalizedDescription, product)),
paywallInfo: .empty(),
Expand Down Expand Up @@ -449,8 +449,8 @@ final class TransactionManager {
product: storeProduct,
purchaseSource: .observeFunc(storeProduct)
)
await coordinator.setCompletion { [weak self] result in
Task {
await coordinator.setCompletion { result in
Task { [weak self] in
await self?.handle(
result: result,
state: .observing
Expand Down

0 comments on commit 6200048

Please sign in to comment.