From a7ae1fd37d2369f6f27a0e4de166f5a510cf2270 Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Mon, 10 Sep 2018 09:09:18 +0100 Subject: [PATCH] Use timeout --- src/blockchain.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/blockchain.js b/src/blockchain.js index 0850686..f713a0b 100644 --- a/src/blockchain.js +++ b/src/blockchain.js @@ -47,8 +47,7 @@ Blockchain.connect = function(connectionList, opts, doneCb) { }); window.postMessage({ type: 'ETHEREUM_PROVIDER_REQUEST' }, '*'); - const infiniteWaitBreaker = setInterval(() => { - clearInterval(infiniteWaitBreaker); + setTimeout(() => { if (exited) { return; }