diff options
author | Florian Dold <florian@dold.me> | 2024-04-02 19:51:30 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-04-02 19:51:30 +0200 |
commit | 2b2a8278844ae53818ca9845630d28dd5efde7d0 (patch) | |
tree | bd49e18f98aae8ed083ed05073eca69a8c77a9d0 | |
parent | bfb20bef36e159a2a233d21c2c071162216373cc (diff) | |
download | wallet-core-2b2a8278844ae53818ca9845630d28dd5efde7d0.tar.gz wallet-core-2b2a8278844ae53818ca9845630d28dd5efde7d0.tar.bz2 wallet-core-2b2a8278844ae53818ca9845630d28dd5efde7d0.zip |
wallet-core: allow repeat 'init' call to change wallet run config
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index 7cc5ab93b..311e91c3d 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -694,13 +694,11 @@ async function dispatchRequestInternal<Op extends WalletApiOperation>( logger.info(`init request: ${j2s(req)}`); if (wex.ws.initCalled) { - logger.warn( - "initWallet called twice, new run configuration is ignored", - ); - return; + logger.info("initializing wallet (repeat initialization)"); + } else { + logger.info("initializing wallet (first initialization)"); } - logger.trace("initializing wallet"); // Write to the DB to make sure that we're failing early in // case the DB is not writeable. try { |