summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-04-22 20:15:00 +0200
committerFlorian Dold <florian@dold.me>2024-04-22 20:15:00 +0200
commit3aa6f820d1447861fc65a705c55b240ee09d2006 (patch)
tree69c3145329e3b3e8b2494bf16fa763e87a4f89cc /packages
parent9596660e65ea89bbe93aa31cd3d7218f471b54a5 (diff)
downloadwallet-core-3aa6f820d1447861fc65a705c55b240ee09d2006.tar.gz
wallet-core-3aa6f820d1447861fc65a705c55b240ee09d2006.tar.bz2
wallet-core-3aa6f820d1447861fc65a705c55b240ee09d2006.zip
wallet-core: make sure that shepherd task loop is running after initialization
Diffstat (limited to 'packages')
-rw-r--r--packages/taler-wallet-core/src/wallet.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts
index d1234d39f..36037a7da 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -723,7 +723,6 @@ async function dispatchRequestInternal<Op extends WalletApiOperation>(
wex.ws.initWithConfig(applyRunConfigDefaults(req.config));
- wex.ws.initCalled = true;
if (wex.ws.config.testing.skipDefaults) {
logger.trace("skipping defaults");
} else {
@@ -733,6 +732,11 @@ async function dispatchRequestInternal<Op extends WalletApiOperation>(
const resp: InitResponse = {
versionInfo: getVersion(wex),
};
+
+ // After initialization, task look should run.
+ wex.taskScheduler.ensureRunning();
+
+ wex.ws.initCalled = true;
return resp;
}
case WalletApiOperation.WithdrawTestkudos: {