1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00

idStore - track network failure

This commit is contained in:
kumavis 2016-05-30 08:22:19 -10:00
parent bd7a46312b
commit 9640a6c543

View File

@ -131,7 +131,10 @@ IdentityStore.prototype.revealAccount = function(cb) {
}
IdentityStore.prototype.getNetwork = function(tries) {
if (tries === 0) return
if (tries === 0) {
this._currentState.network = 'error'
return
}
this.web3.version.getNetwork((err, network) => {
if (err) {
return this.getNetwork(tries - 1, cb)