added timeout when checking web3 connection
This commit is contained in:
parent
9478e60eb8
commit
4df1573d46
@ -149,10 +149,10 @@ Node.prototype.checkWeb3Connection = function()
|
||||
{
|
||||
console.error('Web3 connection attempt', chalk.cyan('#' + this._called++), 'failed');
|
||||
|
||||
process.nextTick(function ()
|
||||
setTimeout(function ()
|
||||
{
|
||||
self.checkWeb3Connection();
|
||||
});
|
||||
}, 500);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user