diff options
author | Iván Ávalos <avalos@disroot.org> | 2024-06-21 17:18:17 -0600 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-06-26 16:32:39 +0200 |
commit | a43c211f61cde0b95ecd0f0779701eef8f4aa34e (patch) | |
tree | 16c23712c27160632feb4f59dd3582a2bc0d7216 /packages/taler-wallet-core/src | |
parent | 7c989435fb7dabf689b16c4180b9f257d734663f (diff) | |
download | wallet-core-a43c211f61cde0b95ecd0f0779701eef8f4aa34e.tar.xz |
set networkAvailable to true by default
Diffstat (limited to 'packages/taler-wallet-core/src')
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 9 |
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; |