From 2819792fd2b22039ed405c32f09ada6334ab0c79 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 18 Jun 2024 20:46:31 +0200 Subject: wallet-core: allow cancelling queued long-poll requests --- packages/taler-wallet-core/src/pay-merchant.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'packages/taler-wallet-core/src/pay-merchant.ts') 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}`); -- cgit v1.2.3