diff options
author | Florian Dold <florian@dold.me> | 2024-06-18 20:46:31 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-06-18 20:46:31 +0200 |
commit | 2819792fd2b22039ed405c32f09ada6334ab0c79 (patch) | |
tree | 8498e41563d1cba7f06f5af2c8d2d16ed043d2fe /packages/taler-wallet-core/src/pay-merchant.ts | |
parent | 61211b5237b0eeb0ab935f530328a4b57f844be3 (diff) | |
download | wallet-core-2819792fd2b22039ed405c32f09ada6334ab0c79.tar.xz |
wallet-core: allow cancelling queued long-poll requests
Diffstat (limited to 'packages/taler-wallet-core/src/pay-merchant.ts')
-rw-r--r-- | packages/taler-wallet-core/src/pay-merchant.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/pay-merchant.ts b/packages/taler-wallet-core/src/pay-merchant.ts index 9e3b37c51..76c96925f 100644 --- a/packages/taler-wallet-core/src/pay-merchant.ts +++ b/packages/taler-wallet-core/src/pay-merchant.ts @@ -2875,6 +2875,7 @@ async function checkIfOrderIsAlreadyPaid( if (doLongPolling) { resp = await wex.ws.runLongpollQueueing( + wex, requestUrl.hostname, async (timeoutMs) => { requestUrl.searchParams.set("timeout_ms", `${timeoutMs}`); @@ -3031,6 +3032,7 @@ async function processPurchaseAutoRefund( requestUrl.searchParams.set("refund", Amounts.stringify(totalKnownRefund)); const resp = await wex.ws.runLongpollQueueing( + wex, requestUrl.hostname, async (timeoutMs) => { requestUrl.searchParams.set("timeout_ms", `${timeoutMs}`); |