aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/common.ts
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2024-06-06 15:49:36 -0300
committerSebastian <sebasjm@gmail.com>2024-06-07 10:38:26 -0300
commit2a37575cf6db006431a7d174b85203ae41cc629f (patch)
tree7cac742f656c3df99e5d7ba22f4d6931ed7fb719 /packages/taler-wallet-core/src/common.ts
parent1e22b5bcf77b3391f86105727e8c0b413b652fd4 (diff)
downloadwallet-core-2a37575cf6db006431a7d174b85203ae41cc629f.tar.xz
wait for previous task to be cancelled
Diffstat (limited to 'packages/taler-wallet-core/src/common.ts')
-rw-r--r--packages/taler-wallet-core/src/common.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/common.ts b/packages/taler-wallet-core/src/common.ts
index 00d462d6f..a9e962dda 100644
--- a/packages/taler-wallet-core/src/common.ts
+++ b/packages/taler-wallet-core/src/common.ts
@@ -41,6 +41,7 @@ import {
checkDbInvariant,
checkLogicInvariant,
durationMul,
+ j2s,
} from "@gnu-taler/taler-util";
import {
BackupProviderRecord,
@@ -798,7 +799,7 @@ export async function genericWaitForState(
flag.raise();
}
});
- const unregisterOnCancelled = wex.cancellationToken.onCancelled(() => {
+ const unregisterOnCancelled = wex.cancellationToken.onCancelled((reason) => {
cancelNotif();
flag.raise();
});