summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/wallet.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-08-19 15:12:33 +0200
committerFlorian Dold <florian@dold.me>2021-08-19 15:12:33 +0200
commitc0e6b6d0f66508ebc8d33502d1281cb48a1c9cc6 (patch)
treee80d81ec1c13a24c73a00eb6f388d6db75b32c0c /packages/taler-wallet-core/src/wallet.ts
parentdefc393d6e320f6cc76df059a94936a7b88571a1 (diff)
downloadwallet-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.ts8
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);
}