added timeout when checking web3 connection

This commit is contained in:
cubedro 2015-05-07 20:26:30 +03:00
parent 9478e60eb8
commit 4df1573d46
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}
}