From 4df1573d46291eb98466d89f2fe88e9572415516 Mon Sep 17 00:00:00 2001 From: cubedro Date: Thu, 7 May 2015 20:26:30 +0300 Subject: [PATCH] added timeout when checking web3 connection --- lib/node.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node.js b/lib/node.js index b2b50c2..6c05915 100644 --- a/lib/node.js +++ b/lib/node.js @@ -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); } } }