Merge pull request #175 from cubedro/develop

Improved web3 reconnect
This commit is contained in:
Marian OANCΞA 2015-06-12 22:42:09 +03:00
commit 973fd73308

View File

@ -176,7 +176,10 @@ Node.prototype.checkWeb3Connection = function()
Node.prototype.reconnectWeb3 = function() Node.prototype.reconnectWeb3 = function()
{ {
console.info("Web3 reconnect attempts started");
this._web3 = false; this._web3 = false;
this._connection_attempts = 0;
if(this.updateInterval) if(this.updateInterval)
clearInterval(this.updateInterval); clearInterval(this.updateInterval);