diff options
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index 3c3da3cea..fec7e6155 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -333,7 +333,7 @@ async function runTaskLoop( } } - if (opts.stopWhenDone && numGivingLiveness === 0) { + if (opts.stopWhenDone && numGivingLiveness === 0 && iteration !== 0) { logger.warn(`stopping, as no pending operations have lifeness`); return; } @@ -970,15 +970,11 @@ export class Wallet { this.ws.stop(); } - runRetryLoop(): Promise<void> { - return runTaskLoop(this.ws); - } - runPending(forceNow: boolean = false) { return runPending(this.ws, forceNow); } - runTaskLoop(opts: RetryLoopOpts) { + runTaskLoop(opts?: RetryLoopOpts) { return runTaskLoop(this.ws, opts); } |