diff options
| author | Florian Dold <florian@dold.me> | 2022-03-08 20:39:52 +0100 | 
|---|---|---|
| committer | Florian Dold <florian@dold.me> | 2022-03-08 20:39:56 +0100 | 
| commit | d5a933e4cb685aab3e5e6bae5ca2358291e59130 (patch) | |
| tree | 852e85a8d056fc80bd370c5ac89c5fd7354d0251 /packages/taler-wallet-core/src/wallet.ts | |
| parent | 1d1c847b793620acf3a2b193ab45eabf53234cb2 (diff) | |
wallet-core: handle reserve retries better
We now always increment the next retry timeout before doing anything
else, so that it is impossible to accidentally retry immediately.
This fixes a bug where we previously made many, very frequent requests
to the bank integration API.
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
| -rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index b53ba24c4..ac0def3c1 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -574,7 +574,7 @@ export async function handleNotifyReserve(        return tx.reserves.iter().toArray();      });    for (const r of reserves) { -    if (r.reserveStatus === ReserveRecordStatus.WAIT_CONFIRM_BANK) { +    if (r.reserveStatus === ReserveRecordStatus.WaitConfirmBank) {        try {          processReserve(ws, r.reservePub);        } catch (e) {  | 
