diff options
author | Florian Dold <florian@dold.me> | 2024-04-22 20:15:00 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-04-22 20:15:00 +0200 |
commit | 3aa6f820d1447861fc65a705c55b240ee09d2006 (patch) | |
tree | 69c3145329e3b3e8b2494bf16fa763e87a4f89cc | |
parent | 9596660e65ea89bbe93aa31cd3d7218f471b54a5 (diff) | |
download | wallet-core-3aa6f820d1447861fc65a705c55b240ee09d2006.tar.xz |
wallet-core: make sure that shepherd task loop is running after initialization
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 6 |
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: { |