mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-19 05:45:15 +01:00
REF: speed-^C wait for electrum
This commit is contained in:
parent
fe8ae56eb1
commit
f8b8146900
@ -681,14 +681,14 @@ module.exports.waitTillConnected = async function () {
|
||||
return resolve(true);
|
||||
}
|
||||
|
||||
if (wasConnectedAtLeastOnce && retriesCounter++ >= 30) {
|
||||
if (wasConnectedAtLeastOnce && retriesCounter++ >= 150) {
|
||||
// `wasConnectedAtLeastOnce` needed otherwise theres gona be a race condition with the code that connects
|
||||
// electrum during app startup
|
||||
clearInterval(waitTillConnectedInterval);
|
||||
presentNetworkErrorAlert();
|
||||
reject(new Error('Waiting for Electrum connection timeout'));
|
||||
}
|
||||
}, 500);
|
||||
}, 100);
|
||||
});
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user