summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/taler-wallet-core/src/withdraw.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/withdraw.ts b/packages/taler-wallet-core/src/withdraw.ts
index a16a03054..ecd654edf 100644
--- a/packages/taler-wallet-core/src/withdraw.ts
+++ b/packages/taler-wallet-core/src/withdraw.ts
@@ -1937,6 +1937,8 @@ export async function getExchangeWithdrawalInfo(
cancellationToken: wex.cancellationToken,
});
+ wex.cancellationToken.throwIfCancelled();
+
if (exchange.currency != instructedAmount.currency) {
// Specifying the amount in the conversion input currency is not yet supported.
// We might add support for it later.
@@ -1957,12 +1959,17 @@ export async function getExchangeWithdrawalInfo(
logger.trace("updating withdrawal denoms");
await updateWithdrawalDenoms(wex, exchangeBaseUrl);
+ wex.cancellationToken.throwIfCancelled();
+
logger.trace("getting candidate denoms");
const candidateDenoms = await getCandidateWithdrawalDenoms(
wex,
exchangeBaseUrl,
instructedAmount.currency,
);
+
+ wex.cancellationToken.throwIfCancelled();
+
logger.trace("selecting withdrawal denoms");
// FIXME: Why not in a transaction?
const selectedDenoms = selectWithdrawalDenominations(