Use timeout

This commit is contained in:
Anthony Laibe 2018-09-10 09:09:18 +01:00
parent 072f95d698
commit a7ae1fd37d
1 changed files with 1 additions and 2 deletions

View File

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