[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 01/02: wallet-core: do not retry transaction if long
From: |
gnunet |
Subject: |
[taler-wallet-core] 01/02: wallet-core: do not retry transaction if long-poll is active |
Date: |
Tue, 21 Feb 2023 20:31:34 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
commit 267714074995aab337b474dce2cb0236c2861a9c
Author: Florian Dold <florian@dold.me>
AuthorDate: Tue Feb 21 19:23:32 2023 +0100
wallet-core: do not retry transaction if long-poll is active
---
packages/taler-wallet-core/src/operations/pay-peer.ts | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/packages/taler-wallet-core/src/operations/pay-peer.ts
b/packages/taler-wallet-core/src/operations/pay-peer.ts
index 5178839a4..bfb0dd589 100644
--- a/packages/taler-wallet-core/src/operations/pay-peer.ts
+++ b/packages/taler-wallet-core/src/operations/pay-peer.ts
@@ -1372,6 +1372,14 @@ export async function processPeerPullCredit(
pursePub,
});
+ // We're already running!
+ if (ws.activeLongpoll[retryTag]) {
+ logger.info("peer-pull-credit already in long-polling, returning!");
+ return {
+ type: OperationAttemptResultType.Longpoll,
+ };
+ }
+
switch (pullIni.status) {
case PeerPullPaymentInitiationStatus.PurseDeposited: {
// We implement this case so that the "retry" action on a
peer-pull-credit transaction
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.