diff options
Diffstat (limited to 'packages/taler-wallet-core/src/util/retries.ts')
-rw-r--r-- | packages/taler-wallet-core/src/util/retries.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/taler-wallet-core/src/util/retries.ts b/packages/taler-wallet-core/src/util/retries.ts index 25b4c5055..8b7d64406 100644 --- a/packages/taler-wallet-core/src/util/retries.ts +++ b/packages/taler-wallet-core/src/util/retries.ts @@ -82,7 +82,7 @@ export function getRetryDuration( }; } -export function initRetryInfo(p: RetryPolicy = defaultRetryPolicy): RetryInfo { +export function resetRetryInfo(p: RetryPolicy = defaultRetryPolicy): RetryInfo { const now = AbsoluteTime.now(); const info = { firstTry: now, @@ -99,7 +99,7 @@ export namespace RetryInfo { p: RetryPolicy = defaultRetryPolicy, ) { if (!r) { - return initRetryInfo(p); + return resetRetryInfo(p); } const r2 = { ...r }; r2.retryCounter++; |