aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/wallet.ts
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2024-06-21 17:18:17 -0600
committerFlorian Dold <florian@dold.me>2024-06-26 16:32:39 +0200
commita43c211f61cde0b95ecd0f0779701eef8f4aa34e (patch)
tree16c23712c27160632feb4f59dd3582a2bc0d7216 /packages/taler-wallet-core/src/wallet.ts
parent7c989435fb7dabf689b16c4180b9f257d734663f (diff)
downloadwallet-core-a43c211f61cde0b95ecd0f0779701eef8f4aa34e.tar.xz
set networkAvailable to true by default
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r--packages/taler-wallet-core/src/wallet.ts9
1 files changed, 8 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts
index 963dfdfe9..79a159d55 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -1997,7 +1997,14 @@ export class InternalWalletState {
return this._dbAccessHandle;
}
- private _networkAvailable = false;
+ /**
+ * When set to false, all tasks that require network will be stopped and
+ * retried until connection is restored.
+ *
+ * Set to true by default for compatibility with clients that don't hint
+ * network availability via hintNetworkAvailability.
+ */
+ private _networkAvailable = true;
get networkAvailable(): boolean {
return this._networkAvailable;