From 86282dcbc2d47213bd878641c46df9d292cef000 Mon Sep 17 00:00:00 2001 From: cubedro Date: Fri, 12 Jun 2015 22:41:39 +0300 Subject: [PATCH] improved web4 reconnect --- lib/node.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/node.js b/lib/node.js index 1bd0d79..31f9b87 100644 --- a/lib/node.js +++ b/lib/node.js @@ -176,7 +176,10 @@ Node.prototype.checkWeb3Connection = function() Node.prototype.reconnectWeb3 = function() { + console.info("Web3 reconnect attempts started"); + this._web3 = false; + this._connection_attempts = 0; if(this.updateInterval) clearInterval(this.updateInterval);