taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 3aa6f820d1447861fc65a705c55b240ee09d2006
parent 9596660e65ea89bbe93aa31cd3d7218f471b54a5
Author: Florian Dold <florian@dold.me>
Date:   Mon, 22 Apr 2024 20:15:00 +0200

wallet-core: make sure that shepherd task loop is running after initialization

Diffstat:
Mpackages/taler-wallet-core/src/wallet.ts | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 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: {