diff options
author | Florian Dold <florian@dold.me> | 2021-08-19 15:12:33 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-08-19 15:12:33 +0200 |
commit | c0e6b6d0f66508ebc8d33502d1281cb48a1c9cc6 (patch) | |
tree | e80d81ec1c13a24c73a00eb6f388d6db75b32c0c /packages/taler-wallet-core/src/wallet.ts | |
parent | defc393d6e320f6cc76df059a94936a7b88571a1 (diff) | |
download | wallet-core-c0e6b6d0f66508ebc8d33502d1281cb48a1c9cc6.tar.gz wallet-core-c0e6b6d0f66508ebc8d33502d1281cb48a1c9cc6.tar.bz2 wallet-core-c0e6b6d0f66508ebc8d33502d1281cb48a1c9cc6.zip |
run pending operations at least once, style fixes
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); } |