taler-typescript-core

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

commit eeeb69164dd7eb0ebcbc6bd41a3a50da3615df98
parent 8fc484375cd2bd3450639c4af83019662c096296
Author: Florian Dold <dold@taler.net>
Date:   Thu,  3 Sep 2026 16:01:24 +0200

wallet-core: keep running after-commit handlers when one throws

Diffstat:
Mpackages/taler-wallet-core/src/db/query.ts | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/packages/taler-wallet-core/src/db/query.ts b/packages/taler-wallet-core/src/db/query.ts @@ -943,7 +943,13 @@ class InternalTransactionContext { handleAfterCommit() { for (const f of this.afterCommitHandlers) { - f(); + try { + f(); + } catch (e) { + // The transaction is committed; one handler must not stop the + // others or the notifications that follow. + logger.error(`after-commit handler failed: ${e}`); + } } }